]> www.ginac.de Git - ginac.git/blob - ginsh/Makefile.in
Initial revision
[ginac.git] / ginsh / Makefile.in
1 # This is the prototype Makefile for ginsh.
2 SHELL = /bin/sh
3
4 # Not every make knows what CXX is, so we inherit it together with some other
5 # values from configure which checks it anyways:
6 CXX = @CXX@
7 CXXFLAGS = @CXXFLAGS@
8 CPPFLAGS = @CPPFLAGS@ -I../ -I../include
9 DEFS = @DEFS@
10 LIBS = @LIBS@ @LEXLIB@
11 LDFLAGS = @LDFLAGS@
12 LEX = @LEX@
13 YACC = @YACC@
14
15 # Here come the usual install directories in GNU-configure fashion:
16 prefix = @prefix@
17 exec_prefix = @exec_prefix@
18 bindir = @bindir@
19 mandir = @mandir@
20 man1dir = ${mandir}/man1
21
22 # This must be empty if configure couldn't find it in ${PATH}:
23 MAKEDEPEND = @MAKEDEPEND@
24
25 # Autoconf macro AC_PROC_INSTALL sets these:
26 INSTALL = @INSTALL@
27 INSTALL_DATA = @INSTALL_DATA@
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
29
30 OBJECTS=y.tab.o @LEX_OUTPUT_ROOT@.o ../src/*.o
31
32 all:    depend ginsh
33
34 ginsh:  ${OBJECTS}
35         ${CXX} ${CXXFLAGS} ${LDFLAGS} ${OBJECTS} ${LIBS} -o ginsh
36
37 # Targets for installation in install directories.
38 install: ginsh installdirs
39         ${INSTALL_PROGRAM} ginsh ${bindir}/ginsh
40         -${INSTALL_DATA} ginsh.1 ${man1dir}/ginsh.1
41
42 installdirs:
43         ${SHELL} mkinstalldirs ${bindir} ${man1dir}
44
45 # Targets for cleaning up. (clean deletes files created by built, distclean
46 # deletes files created by configuration, uninstall removes all files related
47 # to ginsh from the system.)
48 clean:
49         rm -f y.tab.c y.tab.h @LEX_OUTPUT_ROOT@.c
50         rm -f *.o *.lo core ginsh
51
52 distclean: clean
53         rm -f config.status config.log config.cache config.h Makefile Makefile.bak
54
55 uninstall:
56         rm -f ${bindir}/ginsh
57         rm -f ${man1dir}/ginsh.1
58
59 # If Todd Brunhoff's makedepend is installed (it may not---it's part of X11);
60 # then call it; else wait for trouble ahead; fi;    # :-)
61 depend:
62         @if [ ${MAKEDEPEND} ]; then \
63                 echo "calling ${MAKEDEPEND}"; \
64                 ${MAKEDEPEND} -Y. -Y../include *.cpp 2> /dev/null; \
65         fi
66
67 # Special dummy targets:
68 .PHONY: clean distclean depend all install uninstall check doc
69 .SUFFIXES: .o .c .h .y .l
70
71 # Suffix rules:
72 .c.o :
73         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${DEFS} -c $<
74
75 # Explicit rules:
76 y.tab.c y.tab.h: ginsh.y
77         $(YACC) -d ginsh.y
78
79 @LEX_OUTPUT_ROOT@.c: ginsh.l
80         $(LEX) ginsh.l
81
82 # DO NOT DELETE THIS LINE -- make depend depends on it.