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 mkpath.c \
28 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
29 bfile.o drivetype.o enable_priv.o fstype.o mkpath.o \
39 $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
40 #-------------------------------------------------------------------------
41 all: Makefile libfind.a ../lib/libbac.a
42 @echo "==== Make of findlib is good ===="
48 $(AR) cr $@ $(LIBOBJS)
51 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
53 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
61 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
67 if test $(srcdir) = .; then $(MAKE) realclean; fi
68 (cd $(srcdir); $(RMF) Makefile)
71 if test $(srcdir) = .; then $(MAKE) realclean; fi
72 (cd $(srcdir); $(RMF) Makefile)
81 # Semi-automatic generation of dependencies:
82 # Use gcc -M because X11 `makedepend' doesn't work on all systems
83 # and it also includes system headers.
84 # `semi'-automatic since dependencies are generated at distribution time.
87 @$(MV) Makefile Makefile.bak
88 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
89 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
90 @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
91 @if test -f Makefile ; then \
92 $(RMF) Makefile.bak; \
94 $(MV) Makefile.bak Makefile; \
95 echo " ===== Something went wrong in make depend ====="; \
98 # -----------------------------------------------------------------------
99 # DO NOT DELETE: nice dependency list follows