]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/tools/Makefile.in
Use @scriptdir@ not . ./
[bacula/bacula] / bacula / src / tools / Makefile.in
index f63fefc8ef7b3c74413c97fc35f24d2bd4652259..afee4657070b11f0194b72496cdbdaf33b1ef836 100644 (file)
@@ -1,3 +1,8 @@
+#
+# Bacula Tools Makefile
+#
+# Version $Id$
+#
 @MCOMMON@
 
 srcdir =       .
@@ -31,41 +36,46 @@ EXTRAOBJS = @OBJLIST@
 .c.o:
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
 #-------------------------------------------------------------------------
-all: Makefile smtp dbcheck
+all: Makefile bsmtp dbcheck testfind testls 
        @echo "==== Make of tools is good ===="
        @echo " "
 
-smtp:  smtp.o ../lib/libbac.a        
-       $(CXX) $(LDFLAGS) -L../lib -o $@ smtp.o -lbac -lm $(LIBS) $(DLIB)
+bsmtp: bsmtp.o ../lib/libbac.a        
+       $(CXX) $(LDFLAGS) -L../lib -o $@ bsmtp.o -lbac -lm $(LIBS) $(DLIB)
 
 dbcheck: dbcheck.o ../lib/libbac.a ../cats/libsql.a
-       $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o -lbac -lsql -lm $(LIBS) $(DB_LIBS)
+       $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o -lsql -lbac -lm $(LIBS) $(DB_LIBS)
 
 testfind: ../findlib/libfind.a ../lib/libbac.a $(FINDOBJS)
-       $(CC) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ $(FINDOBJS) \
+       $(CXX) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ $(FINDOBJS) \
+         $(LIBS) $(DLIB) -lfind -lbac -lm
+
+testls: ../findlib/libfind.a ../lib/libbac.a testls.o
+       $(CXX) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ testls.o \
          $(LIBS) $(DLIB) -lfind -lbac -lm
 
 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
        cd $(topdir) \
          && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 clean:
-       @$(RMF) smtp core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
-       @$(RMF) testfind dbcheck
+       @$(RMF) bsmtp core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
+       @$(RMF) testfind dbcheck testls
 
 realclean: clean
-       @$(RMF) tags Makefile
+       @$(RMF) tags
 
 distclean: realclean
        if test $(srcdir) = .; then $(MAKE) realclean; fi
-       (cd $(srcdir); $(RMF) Makefile)
+       (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
 
-install: smtp
-       $(INSTALL_PROGRAM) smtp $(DESTDIR)$(sbindir)/smtp      
+install: bsmtp
+       $(INSTALL_PROGRAM) bsmtp $(DESTDIR)$(sbindir)/bsmtp      
+       $(INSTALL_PROGRAM) dbcheck $(DESTDIR)$(sbindir)/dbcheck      
 
 uninstall:
-       (cd $(DESTDIR)$(sbindir); $(RMF) smtp)
+       (cd $(DESTDIR)$(sbindir); $(RMF) bsmtp)
+       (cd $(DESTDIR)$(sbindir); $(RMF) dbcheck)
 
 
 
@@ -78,7 +88,7 @@ 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
+       @$(CC) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
        @if test -f Makefile ; then \
            $(RMF) Makefile.bak; \
        else \