14 # this dir relative to top dir
23 CONSSRCS = console.c console_conf.c authenticate.c
24 CONSOBJS = console.o console_conf.o authenticate.o
26 # these are the objects that are changed by the .configure process
31 CONS_LDFLAGS=@CONS_LDFLAGS@
39 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
40 #-------------------------------------------------------------------------
42 @echo "==== Make of console is good ===="
46 console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
47 $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
48 $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm
50 static-console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
51 $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
52 $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm
56 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
58 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
61 $(RMF) console core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
64 $(RMF) tags console.conf
67 if test $(srcdir) = .; then $(MAKE) realclean; fi
68 (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
71 $(INSTALL_SCRIPT) console $(DESTDIR)$(sbindir)/console
72 @srcconf=console.conf; \
73 if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
74 destconf=$$srcconf.new; \
75 echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
79 echo "${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
80 ${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
83 (cd $(DESTDIR)$(sbindir); $(RMF) console)
84 (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf
88 # Semi-automatic generation of dependencies:
89 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
90 # and it also includes system headers.
91 # `semi'-automatic since dependencies are generated at distribution time.
94 @$(MV) Makefile Makefile.bak
95 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
96 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
97 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
98 @if test -f Makefile ; then \
99 $(RMF) Makefile.bak; \
101 $(MV) Makefile.bak Makefile; \
102 echo -e "Something went wrong\n\a"; \
105 # -----------------------------------------------------------------------
106 # DO NOT DELETE: nice dependency list follows