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
35 $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
36 #-------------------------------------------------------------------------
37 all: Makefile libfind.a ../lib/libbac.a
38 @echo "==== Make of findlib is good ===="
43 $(AR) cru $@ $(LIBOBJS)
46 testfind: libfind.a $(FINDOBJS)
47 $(CC) -g $(LDFLAGS) -L. -L../lib -o $@ $(FINDOBJS) $(LIBS) $(DLIB) -lfind -lbac -lm
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
51 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
59 $(RMF) find testfind core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
65 if test $(srcdir) = .; then $(MAKE) realclean; fi
66 (cd $(srcdir); $(RMF) Makefile)
75 # Semi-automatic generation of dependencies:
76 # Use gcc -M because X11 `makedepend' doesn't work on all systems
77 # and it also includes system headers.
78 # `semi'-automatic since dependencies are generated at distribution time.
81 @$(MV) Makefile Makefile.bak
82 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
83 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
84 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
85 @if test -f Makefile ; then \
86 $(RMF) Makefile.bak; \
88 $(MV) Makefile.bak Makefile; \
89 echo -e "Something went wrong\n\a"; \
92 # -----------------------------------------------------------------------
93 # DO NOT DELETE: nice dependency list follows