1 # This is the prototype Makefile for ginsh.
4 # Not every make knows what CXX is, so we inherit it together with some other
5 # values from configure which checks it anyways:
8 CPPFLAGS = @CPPFLAGS@ -I../ -I../include
10 LIBS = @LIBS@ @LEXLIB@
15 # Here come the usual install directories in GNU-configure fashion:
17 exec_prefix = @exec_prefix@
20 man1dir = ${mandir}/man1
22 # This must be empty if configure couldn't find it in ${PATH}:
23 MAKEDEPEND = @MAKEDEPEND@
25 # Autoconf macro AC_PROC_INSTALL sets these:
27 INSTALL_DATA = @INSTALL_DATA@
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
30 OBJECTS=y.tab.o @LEX_OUTPUT_ROOT@.o ../src/*.o
35 ${CXX} ${CXXFLAGS} ${LDFLAGS} ${OBJECTS} ${LIBS} -o ginsh
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
43 ${SHELL} mkinstalldirs ${bindir} ${man1dir}
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.)
49 rm -f y.tab.c y.tab.h @LEX_OUTPUT_ROOT@.c
50 rm -f *.o *.lo core ginsh
53 rm -f config.status config.log config.cache config.h Makefile Makefile.bak
57 rm -f ${man1dir}/ginsh.1
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; # :-)
62 @if [ ${MAKEDEPEND} ]; then \
63 echo "calling ${MAKEDEPEND}"; \
64 ${MAKEDEPEND} -Y. -Y../include *.cpp 2> /dev/null; \
67 # Special dummy targets:
68 .PHONY: clean distclean depend all install uninstall check doc
69 .SUFFIXES: .o .c .h .y .l
73 ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${DEFS} -c $<
76 y.tab.c y.tab.h: ginsh.y
79 @LEX_OUTPUT_ROOT@.c: ginsh.l
82 # DO NOT DELETE THIS LINE -- make depend depends on it.