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 attribs.c create_file.c \
26 bfile.c drivetype.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 drivetype.o enable_priv.o fstype.o makepath.o save-cwd.o
37 $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
38 #-------------------------------------------------------------------------
39 all: Makefile libfind.a ../lib/libbac.a
40 @echo "==== Make of findlib is good ===="
46 $(AR) cr $@ $(LIBOBJS)
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
51 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
59 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
65 if test $(srcdir) = .; then $(MAKE) realclean; fi
66 (cd $(srcdir); $(RMF) Makefile)
69 if test $(srcdir) = .; then $(MAKE) realclean; fi
70 (cd $(srcdir); $(RMF) Makefile)
79 # Semi-automatic generation of dependencies:
80 # Use gcc -M because X11 `makedepend' doesn't work on all systems
81 # and it also includes system headers.
82 # `semi'-automatic since dependencies are generated at distribution time.
85 @$(MV) Makefile Makefile.bak
86 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
87 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
88 @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
89 @if test -f Makefile ; then \
90 $(RMF) Makefile.bak; \
92 $(MV) Makefile.bak Makefile; \
93 echo " ===== Something went wrong in make depend ====="; \
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows