2 # Find files library Makefile
6 python = @PYTHON_INCDIR@
16 # this dir relative to top dir
25 LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
26 bfile.c enable_priv.c fstype.c makepath.c save-cwd.c
27 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
28 bfile.o enable_priv.o fstype.o makepath.o save-cwd.o
36 $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
37 #-------------------------------------------------------------------------
38 all: Makefile libfind.a ../lib/libbac.a
39 @echo "==== Make of findlib is good ===="
44 $(AR) cr $@ $(LIBOBJS)
47 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
49 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
57 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
63 if test $(srcdir) = .; then $(MAKE) realclean; fi
64 (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
67 if test $(srcdir) = .; then $(MAKE) realclean; fi
68 (cd $(srcdir); $(RMF) Makefile)
77 # Semi-automatic generation of dependencies:
78 # Use gcc -M because X11 `makedepend' doesn't work on all systems
79 # and it also includes system headers.
80 # `semi'-automatic since dependencies are generated at distribution time.
83 @$(MV) Makefile Makefile.bak
84 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
85 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
86 @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
87 @if test -f Makefile ; then \
88 $(RMF) Makefile.bak; \
90 $(MV) Makefile.bak Makefile; \
91 echo " ===== Something went wrong in make depend ====="; \
94 # -----------------------------------------------------------------------
95 # DO NOT DELETE: nice dependency list follows