11 # this dir relative to top dir
23 # these are the objects that are changed by the .configure process
32 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
33 #-------------------------------------------------------------------------
34 all: Makefile smtp dbcheck
35 @echo "==== Make of tools is good ===="
38 smtp: smtp.o ../lib/libbac.a
39 $(CXX) $(LDFLAGS) -L../lib -o $@ smtp.o -lbac -lm $(LIBS) $(DLIB)
41 dbcheck: dbcheck.o ../lib/libbac.a ../cats/libsql.a
42 $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o -lbac -lsql -lm $(LIBS) $(DB_LIBS)
44 testfind: ../findlib/libfind.a ../lib/libbac.a $(FINDOBJS)
45 $(CC) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ $(FINDOBJS) \
46 $(LIBS) $(DLIB) -lfind -lbac -lm
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
51 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
54 @$(RMF) smtp core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
55 @$(RMF) testfind dbcheck
61 if test $(srcdir) = .; then $(MAKE) realclean; fi
62 (cd $(srcdir); $(RMF) Makefile)
65 $(INSTALL_PROGRAM) smtp $(DESTDIR)$(sbindir)/smtp
68 (cd $(DESTDIR)$(sbindir); $(RMF) smtp)
72 # Semi-automatic generation of dependencies:
73 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
74 # and it also includes system headers.
75 # `semi'-automatic since dependencies are generated at distribution time.
78 @$(MV) Makefile Makefile.bak
79 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
80 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
81 @$(CC) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
82 @if test -f Makefile ; then \
83 $(RMF) Makefile.bak; \
85 $(MV) Makefile.bak Makefile; \
86 echo -e "Something went wrong\n\a"; \
89 # -----------------------------------------------------------------------
90 # DO NOT DELETE: nice dependency list follows