]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/findlib/Makefile.in
$(RMF) mysql postgresql sqlite => $(RMF) mysql sqlite
[bacula/bacula] / bacula / src / findlib / Makefile.in
index be830fe1c18d07afc6f584adab31cf4252a71924..09000594e5802fe80af67439484c560b095b7097 100644 (file)
@@ -20,11 +20,10 @@ first_rule: all
 dummy:
 
 #
-LIBSRCS = find.c match.c find_one.c
-LIBOBJS = find.o match.o find_one.o
-
-FINDSRCS = testfind.c
-FINDOBJS = testfind.o
+LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
+         bfile.c enable_priv.c makepath.c save-cwd.c winapi.c
+LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
+         bfile.o enable_priv.o makepath.o save-cwd.o winapi.o
 
 .SUFFIXES:     .c .o
 .PHONY:
@@ -32,20 +31,17 @@ FINDOBJS = testfind.o
 
 # inference rules
 .c.o:
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+       $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
 #-------------------------------------------------------------------------
 all: Makefile libfind.a ../lib/libbac.a
        @echo "==== Make of findlib is good ===="
        @echo " "
 
 libfind.a: $(LIBOBJS) 
-       $(RMF) libfind.a
-       $(AR) cru $@ $(LIBOBJS)
+       $(RMF) $@
+       $(AR) cr $@ $(LIBOBJS)
        $(RANLIB) $@
 
-testfind: libfind.a $(FINDOBJS)
-       $(CC) -g $(LDFLAGS) -L. -L../lib -o $@ $(FINDOBJS) $(LIBS) $(DLIB) -lfind -lbac -lm
-
 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
        cd $(topdir) \
          && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
@@ -56,14 +52,14 @@ uninstall:
 
 
 clean:
-       $(RMF) find testfind core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
+       $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
 
 realclean: clean
        $(RMF) tags
 
 distclean: realclean
        if test $(srcdir) = .; then $(MAKE) realclean; fi
-       (cd $(srcdir); $(RMF) Makefile)
+       (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
 
 install: