2 # Find files library Makefile
14 # this dir relative to top dir
23 LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
24 bfile.c enable_priv.c fstype.c makepath.c save-cwd.c winapi.c
25 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
26 bfile.o enable_priv.o fstype.o makepath.o save-cwd.o winapi.o
34 $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
35 #-------------------------------------------------------------------------
36 all: Makefile libfind.a ../lib/libbac.a
37 @echo "==== Make of findlib is good ===="
42 $(AR) cr $@ $(LIBOBJS)
45 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
47 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
55 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
61 if test $(srcdir) = .; then $(MAKE) realclean; fi
62 (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
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 @$(CXX) -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