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) crs $@ $(LIBOBJS)
42 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
44 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
52 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
58 if test $(srcdir) = .; then $(MAKE) realclean; fi
59 (cd $(srcdir); $(RMF) Makefile)
68 # Semi-automatic generation of dependencies:
69 # Use gcc -M because X11 `makedepend' doesn't work on all systems
70 # and it also includes system headers.
71 # `semi'-automatic since dependencies are generated at distribution time.
74 @$(MV) Makefile Makefile.bak
75 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
76 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
77 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
78 @if test -f Makefile ; then \
79 $(RMF) Makefile.bak; \
81 $(MV) Makefile.bak Makefile; \
82 echo -e "Something went wrong\n\a"; \
85 # -----------------------------------------------------------------------
86 # DO NOT DELETE: nice dependency list follows