X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2FMakefile.in;h=192f9ddfaf2c8b4dde6f6ea412cb8c38f0132ba5;hb=55d2a21a72a4f6b5ea309a11f68e20361f468877;hp=44ea26276b467d5ca5351ea9765a89d7e685d1a0;hpb=e57df8569de96f4a6ac589c3b39ba7d8514e5b0a;p=bacula%2Fbacula diff --git a/bacula/src/filed/Makefile.in b/bacula/src/filed/Makefile.in index 44ea26276b..192f9ddfaf 100644 --- a/bacula/src/filed/Makefile.in +++ b/bacula/src/filed/Makefile.in @@ -23,6 +23,8 @@ GETTEXT_LIBS = @LIBINTL@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_INC = @PYTHON_INCDIR@ +AFS_CFLAGS = @AFS_CFLAGS@ +AFS_LIBS = @AFS_LIBS@ first_rule: all dummy: @@ -37,7 +39,9 @@ SVROBJS = $(SVRSRCS:.c=.o) # these are the objects that are changed by the .configure process EXTRAOBJS = @OBJLIST@ +CAP_LIBS = @CAP_LIBS@ FDLIBS = @FDLIBS@ # extra libs for File daemon +ZLIBS = @ZLIBS@ # extra items for linking on Win32 WIN32OBJS = win32/winmain.o win32/winlib.a win32/winres.res @@ -58,33 +62,45 @@ all: Makefile @WIN32@ bacula-fd @STATIC_FD@ @echo "==== Make of filed is good ====" @echo " " +acl.o: acl.c + @echo "Compiling $<" + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $(AFS_CFLAGS) $< + win32/winlib.a: - (cd win32; $(MAKE) DESTDIR=$(DESTDIR)) + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \ + fi @rm -f bacula-fd.exe win32/winmain.o: - (cd win32; $(MAKE) DESTDIR=$(DESTDIR)) + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \ + fi @rm -f bacula-fd.exe win32/winres.res: - (cd win32; $(MAKE) DESTDIR=$(DESTDIR)) + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \ + fi @rm -f bacula-fd.exe # win32 libraries if needed win32: $(WIN32OBJS) - (cd win32; $(MAKE) DESTDIR=$(DESTDIR)) + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \ + fi @rm -f bacula-fd.exe bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ @echo "Linking $@ ..." $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \ - $(WIN32LIBS) $(FDLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \ - $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) + $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \ + $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \ - $(WIN32LIBS) $(FDLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \ - $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) + $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \ + $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) strip $@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status @@ -92,13 +108,13 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status libtool-clean: - $(RMF) -r .libs _libs + @$(RMF) -r .libs _libs -clean: @LIBTOOL_CLEAN_TARGET@ +clean: libtool-clean @$(RMF) bacula-fd filed core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3 @$(RMF) static-bacula-fd - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) clean); \ + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) clean); \ fi realclean: clean @@ -107,15 +123,15 @@ realclean: clean distclean: realclean if test $(srcdir) = .; then $(MAKE) realclean; fi (cd $(srcdir); $(RMF) Makefile) - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) distclean); \ + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) distclean); \ fi devclean: realclean if test $(srcdir) = .; then $(MAKE) realclean; fi (cd $(srcdir); $(RMF) Makefile) - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) devclean); \ + @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \ + (cd win32; $(GMAKE) devclean); \ fi install: all