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