]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/findlib/Makefile.in
Implement savecwd.h and savecwd.c. Remove FSF versions.
[bacula/bacula] / bacula / src / findlib / Makefile.in
index be830fe1c18d07afc6f584adab31cf4252a71924..89c6354c34466966528655ea1a6cf0a0c9737cd5 100644 (file)
@@ -3,6 +3,8 @@
 #
 @MCOMMON@
 
+python = @PYTHON_INCDIR@
+
 srcdir =       .
 VPATH =        .
 .PATH:         .
@@ -20,11 +22,12 @@ 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 attribs.c create_file.c \
+         bfile.c drivetype.c enable_priv.c fstype.c makepath.c \
+         savecwd.c
+LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
+         bfile.o drivetype.o enable_priv.o fstype.o makepath.o \
+         savecwd.o
 
 .SUFFIXES:     .c .o
 .PHONY:
@@ -32,20 +35,19 @@ FINDOBJS = testfind.o
 
 # inference rules
 .c.o:
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+       @echo "Compiling $<"
+       $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -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)
+       @echo "Making $@ ..."
+       @$(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,7 +58,7 @@ 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
@@ -65,6 +67,10 @@ distclean: realclean
        if test $(srcdir) = .; then $(MAKE) realclean; fi
        (cd $(srcdir); $(RMF) Makefile)
 
+devclean: realclean
+       if test $(srcdir) = .; then $(MAKE) realclean; fi
+       (cd $(srcdir); $(RMF) Makefile)
+
 install:
 
 
@@ -81,12 +87,12 @@ depend:
        @$(MV) Makefile Makefile.bak
        @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
        @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
-       @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
+       @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
        @if test -f Makefile ; then \
            $(RMF) Makefile.bak; \
        else \
           $(MV) Makefile.bak Makefile; \
-          echo -e "Something went wrong\n\a"; \
+          echo " ===== Something went wrong in make depend ====="; \
        fi
 
 # -----------------------------------------------------------------------