X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2FMakefile.in;h=de69c1cdcc5ecb168e0aef455d80d86450599e43;hb=9478d19847b52b34d509d0b1494201881bff6128;hp=cdef7ac8bee80e2fe5865bf9ed7d34d20f2e7d40;hpb=0f58e58cb96870182760a1161dd709b1b3f7fe6e;p=bacula%2Fbacula diff --git a/bacula/src/stored/Makefile.in b/bacula/src/stored/Makefile.in index cdef7ac8be..de69c1cdcc 100644 --- a/bacula/src/stored/Makefile.in +++ b/bacula/src/stored/Makefile.in @@ -17,39 +17,52 @@ DEBUG=@DEBUG@ first_rule: all dummy: -# -SVRSRCS = stored.c append.c askdir.c authenticate.c block.c dev.c \ - device.c dircmd.c fd_cmds.c fdmsg.c job.c \ - label.c match_bsr.c parse_bsr.c \ - read.c record.c stored_conf.c -SVROBJS = stored.o append.o askdir.o authenticate.o block.o dev.o \ - device.o dircmd.o fd_cmds.o fdmsg.o job.o \ - label.o match_bsr.o parse_bsr.o \ - read.o record.o stored_conf.o - -# bpool is depricated -#POOLSRCS = bpool.c block.c dev.c device.c askdir.c label.c \ -# record.c stored_conf.c -#POOLOBJS = bpool.o block.o dev.o device.o askdir.o label.o \ -# record.o stored_conf.o - -# -TAPESRCS = btape.c block.c dev.c device.c askdir.c label.c \ - record.c stored_conf.c -TAPEOBJS = btape.o block.o dev.o device.o askdir.o label.o \ - record.o stored_conf.o - -BLSOBJS = bls.o block.o device.o dev.o label.o record.o - +# bacula-sd +SVRSRCS = stored.c autochanger.c acquire.c append.c \ + askdir.c authenticate.c \ + block.c butil.c dev.c \ + device.c dircmd.c fd_cmds.c job.c \ + label.c match_bsr.c mount.c parse_bsr.c \ + read.c read_record.c record.c \ + spool.c status.c stored_conf.c +SVROBJS = stored.o autochanger.o acquire.o append.o \ + askdir.o authenticate.o \ + block.o butil.o dev.o \ + device.o dircmd.o fd_cmds.o job.o \ + label.o match_bsr.o mount.o parse_bsr.o \ + read.o read_record.o record.o \ + spool.o status.o stored_conf.o + +# btape +TAPESRCS = btape.c block.c butil.c dev.c device.c label.c \ + acquire.c mount.c record.c read_record.c \ + stored_conf.c match_bsr.c parse_bsr.c spool.c +TAPEOBJS = btape.o block.o butil.o dev.o device.o label.o \ + autochanger.o acquire.o mount.o record.o read_record.o \ + stored_conf.o match_bsr.o parse_bsr.o spool.o + +# bls +BLSOBJS = bls.o block.o butil.o device.o dev.o label.o match_bsr.o \ + autochanger.o acquire.o mount.o parse_bsr.o record.o \ + read_record.o stored_conf.o spool.o + +# bextract BEXTOBJS = bextract.o block.o device.o dev.o label.o record.o \ - match_bsr.o parse_bsr.o + autochanger.o acquire.o mount.o match_bsr.o parse_bsr.o butil.o \ + read_record.o stored_conf.o spool.o + +# bscan +SCNOBJS = bscan.o block.o device.o dev.o label.o \ + autochanger.o acquire.o mount.o record.o match_bsr.o parse_bsr.o \ + butil.o read_record.o stored_conf.o spool.o -SCNOBJS = bscan.o block.o device.o dev.o askdir.o label.o record.o +# bcopy +COPYOBJS = bcopy.o block.o device.o dev.o label.o \ + autochanger.o acquire.o mount.o record.o match_bsr.o parse_bsr.o \ + butil.o read_record.o stored_conf.o spool.o -# it was ``be kind to gmake week''. Now it's ``autoconf week'' -#OBJS = $(SRCS:S,.c,.o,) # these are the objects that are changed by the .configure process EXTRAOBJS = @OBJLIST@ @@ -62,31 +75,49 @@ FDLIBS=@FDLIBS@ # 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 bacula-sd bls bextract bscan btape + +all: Makefile bacula-sd @STATIC_SD@ bls bextract bscan btape bcopy @echo "===== Make of stored is good ====" @echo " " bacula-sd: $(SVROBJS) ../lib/libbac.a - $(CXX) $(LDFLAGS) -L../lib -o $@ $(SVROBJS) $(FDLIBS) -lbac -lm $(LIBS) $(DLIB) + $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -o $@ $(SVROBJS) $(FDLIBS) -lbac -lm $(DLIB) $(LIBS) -#bpool: $(POOLOBJS) ../lib/libbac.a ../cats/libsql.a -# $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ $(POOLOBJS) -lsql $(LIBS) $(DLIB) -lbac -lm +static-bacula-sd: $(SVROBJS) ../lib/libbac.a + $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -o $@ $(SVROBJS) $(FDLIBS) -lbac -lm $(DLIB) $(LIBS) + strip $@ + +btape.o: btape.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< btape: $(TAPEOBJS) ../lib/libbac.a ../cats/libsql.a - $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ $(TAPEOBJS) -lsql $(LIBS) $(DLIB) -lbac -lm + $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../cats -o $@ $(TAPEOBJS) -lsql $(DLIB) -lbac -lm $(LIBS) + +bls.o: bls.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bls: ../findlib/libfind.a $(BLSOBJS) ../lib/libbac.a - $(CXX) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BLSOBJS) $(LIBS) $(DLIB) -lbac -lfind -lm + $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BLSOBJS) $(DLIB) -lfind -lbac -lm $(LIBS) + +bextract.o: bextract.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bextract: ../findlib/libfind.a $(BEXTOBJS) ../lib/libbac.a - $(CXX) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BEXTOBJS) $(LIBS) $(DLIB) $(FDLIBS) -lbac -lfind -lm + $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BEXTOBJS) $(DLIB) $(FDLIBS) -lfind -lbac -lm $(LIBS) + +bscan.o: bscan.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< -bscan: ../findlib/libfind.a $(SCNOBJS) ../cats/libsql.a - $(CXX) $(LDFLAGS) -L../lib -L../cats -L../findlib -o $@ $(SCNOBJS) -lsql $(LIBS) $(DB_LIBS) $(FDLIBS) -lbac -lfind -lm +bscan: ../findlib/libfind.a $(SCNOBJS) ../cats/libsql.a + $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../cats -L../findlib -o $@ $(SCNOBJS) -lsql $(DB_LIBS) $(FDLIBS) -lfind -lbac -lm $(LIBS) +bcopy.o: bcopy.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< +bcopy: $(COPYOBJS) ../findlib/libfind.a ../lib/libbac.a + $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(COPYOBJS) $(DB_LIBS) $(FDLIBS) -lfind -lbac -lm $(LIBS) Makefile: $(srcdir)/Makefile.in $(topdir)/config.status @@ -97,7 +128,8 @@ install: all $(INSTALL_PROGRAM) bacula-sd $(DESTDIR)$(sbindir)/bacula-sd $(INSTALL_PROGRAM) bls $(DESTDIR)$(sbindir)/bls $(INSTALL_PROGRAM) bextract $(DESTDIR)$(sbindir)/bextract -# $(INSTALL_PROGRAM) bpool $(DESTDIR)$(sbindir)/bpool + $(INSTALL_PROGRAM) bcopy $(DESTDIR)$(sbindir)/bcopy + $(INSTALL_PROGRAM) bscan $(DESTDIR)$(sbindir)/bscan $(INSTALL_PROGRAM) btape $(DESTDIR)$(sbindir)/btape @srcconf=bacula-sd.conf; \ if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ @@ -106,28 +138,36 @@ install: all else \ destconf=$$srcconf; \ fi; \ - echo "${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ - ${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf + echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ + ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf + @if test -f static-bacula-sd; then \ + $(INSTALL_PROGRAM) static-bacula-sd $(DESTDIR)$(sbindir)/static-bacula-sd; \ + fi uninstall: (cd $(DESTDIR)$(sbindir); $(RMF) bacula-sd) (cd $(DESTDIR)$(sbindir); $(RMF) bls) (cd $(DESTDIR)$(sbindir); $(RMF) bextract) -# (cd $(DESTDIR)$(sbindir); $(RMF) bpool) - (cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-sd.conf) + (cd $(DESTDIR)$(sbindir); $(RMF) bcopy) + (cd $(DESTDIR)$(sbindir); $(RMF) bscan) + (cd $(DESTDIR)$(sbindir); $(RMF) btape) + (cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-sd.conf bacula-sd.conf.new) clean: @$(RMF) bacula-sd stored bls bextract bpool btape shmfree core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3 - @$(RMF) bscan + @$(RMF) bscan bcopy static-bacula-sd realclean: clean @$(RMF) tags bacula-sd.conf distclean: realclean if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile) + (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS) +devclean: realclean + if test $(srcdir) = .; then $(MAKE) realclean; fi + (cd $(srcdir); $(RMF) Makefile) # Semi-automatic generation of dependencies: # Use cc -M because X11 `makedepend' doesn't work on all systems