11 # this dir relative to top dir
20 CONSSRCS = console.c console_conf.c authenticate.c
21 CONSOBJS = console.o console_conf.o authenticate.o
23 # these are the objects that are changed by the .configure process
28 CONS_LDFLAGS=@CONS_LDFLAGS@
36 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
37 #-------------------------------------------------------------------------
39 @echo "==== Make of console is good ===="
43 console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
44 $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
45 $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm -ltermcap
47 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
49 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
52 $(RMF) console core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
55 $(RMF) tags console.conf
58 if test $(srcdir) = .; then $(MAKE) realclean; fi
59 (cd $(srcdir); $(RMF) Makefile)
62 $(INSTALL_SCRIPT) console $(DESTDIR)$(sbindir)/console
63 @srcconf=console.conf; \
64 if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
65 destconf=$$srcconf.new; \
66 echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
70 echo "${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
71 ${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
74 (cd $(DESTDIR)$(sbindir); $(RMF) console)
75 (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf
79 # Semi-automatic generation of dependencies:
80 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
81 # and it also includes system headers.
82 # `semi'-automatic since dependencies are generated at distribution time.
85 @$(MV) Makefile Makefile.bak
86 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
87 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
88 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
89 @if test -f Makefile ; then \
90 $(RMF) Makefile.bak; \
92 $(MV) Makefile.bak Makefile; \
93 echo -e "Something went wrong\n\a"; \
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows