X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fconsole%2FMakefile.in;h=0186d3369cf7feecc1ef9e2cc3c87460566949f1;hb=d9b7c3a08c08c031a44519f497dcce964f219234;hp=ba266f27d40fab8e42b24d3eb622a4d5d69ae4a2;hpb=f10494e3ebc71f9b47b4ed467c8d5fcf7f2bfde3;p=bacula%2Fbacula diff --git a/bacula/src/console/Makefile.in b/bacula/src/console/Makefile.in index ba266f27d4..0186d3369c 100644 --- a/bacula/src/console/Makefile.in +++ b/bacula/src/console/Makefile.in @@ -3,9 +3,9 @@ # @MCOMMON@ -srcdir = . -VPATH = . -.PATH: . +srcdir = . +VPATH = . +.PATH: . # one up basedir = .. @@ -26,78 +26,90 @@ CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@ # these are the objects that are changed by the .configure process EXTRAOBJS = @OBJLIST@ +GETTEXT_LIBS = @LIBINTL@ + CONS_INC=@CONS_INC@ CONS_LIBS=@CONS_LIBS@ CONS_LDFLAGS=@CONS_LDFLAGS@ -.SUFFIXES: .c .o +.SUFFIXES: .c .o .PHONY: .DONTCARE: # inference rules .c.o: - $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + @echo "Compiling $<" + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile bconsole @STATIC_CONS@ - @echo "==== Make of console is good ====" - @echo " " + @echo "==== Make of console is good ====" + @echo " " -bconsole: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a - $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \ - $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm +bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) + $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \ + $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ + $(OPENSSL_LIBS) -static-bconsole: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a - $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \ - $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm - strip $@ +static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) + $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \ + $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ + $(OPENSSL_LIBS) + strip $@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ - && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + cd $(topdir) \ + && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + +libtool-clean: + @$(RMF) -r .libs _libs -clean: - @$(RMF) console bconsole core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3 - @$(RMF) static-console static-bconsole gmon.out +clean: libtool-clean + @$(RMF) console bconsole core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3 + @$(RMF) static-console static-bconsole gmon.out realclean: clean - @$(RMF) tags console.conf bconsole.conf + @$(RMF) tags console.conf bconsole.conf distclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS) + 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: all - @if test -f ${DESTDIR}${sbindir}/console; then \ - echo " "; \ - echo "Warning!!! ${DESTDIR}${sbindir}console found."; \ - echo " console has been renamed bconsole, so console"; \ - echo " is no longer used, and you might want to delete it."; \ - echo " "; \ - fi - $(INSTALL_PROGRAM) bconsole $(DESTDIR)$(sbindir)/bconsole - @srcconf=bconsole.conf; \ - if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ - destconf=$$srcconf.new; \ - echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ - else \ - destconf=$$srcconf; \ - if test -f ${DESTDIR}${sysconfdir}/console.conf; then \ - echo "Existing console.conf moved to bconsole.conf"; \ - @$(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \ - destconf=$$srcconf.new; \ - fi; \ - fi; \ - echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ - ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf - if test -f static-bconsole; then \ - $(INSTALL_PROGRAM) static-bconsole $(DESTDIR)$(sbindir)/static-bconsole; \ - fi + @if test -f ${DESTDIR}${sbindir}/console; then \ + echo " "; \ + echo "Warning!!! ${DESTDIR}${sbindir}/console found."; \ + echo " console has been renamed bconsole, so console"; \ + echo " is no longer used, and you might want to delete it."; \ + echo " "; \ + fi + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bconsole $(DESTDIR)$(sbindir)/bconsole + @srcconf=bconsole.conf; \ + if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ + destconf=$$srcconf.new; \ + echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ + else \ + destconf=$$srcconf; \ + if test -f ${DESTDIR}${sysconfdir}/console.conf; then \ + echo "Existing console.conf moved to bconsole.conf"; \ + @$(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \ + destconf=$$srcconf.new; \ + fi; \ + fi; \ + echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ + ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf + if test -f static-bconsole; then \ + $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) static-bconsole $(DESTDIR)$(sbindir)/static-bconsole; \ + fi uninstall: - (cd $(DESTDIR)$(sbindir); $(RMF) bconsole static-bconsole) - (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf bconsole.conf bconsole.conf.new) + (cd $(DESTDIR)$(sbindir); $(RMF) bconsole static-bconsole) + (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf bconsole.conf bconsole.conf.new) @@ -107,16 +119,16 @@ uninstall: # `semi'-automatic since dependencies are generated at distribution time. 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) $(CONS_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"; \ - fi + @$(MV) Makefile Makefile.bak + @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile + @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile + @$(CXX) -S -M $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile + @if test -f Makefile ; then \ + $(RMF) Makefile.bak; \ + else \ + $(MV) Makefile.bak Makefile; \ + echo " ===== Something went wrong in make depend ====="; \ + fi # ----------------------------------------------------------------------- # DO NOT DELETE: nice dependency list follows