2 # Find files library Makefile
14 # this dir relative to top dir
23 LIBSRCS = find.c match.c find_one.c
24 LIBOBJS = find.o match.o find_one.o
32 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
33 #-------------------------------------------------------------------------
34 all: Makefile libfind.a ../lib/libbac.a
35 @echo "==== Make of findlib is good ===="
40 $(AR) cru $@ $(LIBOBJS)
43 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
45 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
53 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
59 if test $(srcdir) = .; then $(MAKE) realclean; fi
60 (cd $(srcdir); $(RMF) Makefile)
69 # Semi-automatic generation of dependencies:
70 # Use gcc -M because X11 `makedepend' doesn't work on all systems
71 # and it also includes system headers.
72 # `semi'-automatic since dependencies are generated at distribution time.
75 @$(MV) Makefile Makefile.bak
76 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
77 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
78 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
79 @if test -f Makefile ; then \
80 $(RMF) Makefile.bak; \
82 $(MV) Makefile.bak Makefile; \
83 echo -e "Something went wrong\n\a"; \
86 # -----------------------------------------------------------------------
87 # DO NOT DELETE: nice dependency list follows