]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak unittests compilation from tools/ directory
authorEric Bollengier <eric@baculasystems.com>
Thu, 25 Mar 2021 15:39:01 +0000 (16:39 +0100)
committerEric Bollengier <eric@baculasystems.com>
Fri, 26 Mar 2021 13:57:58 +0000 (14:57 +0100)
bacula/src/tools/Makefile.in

index 24225509b3fb11f3b2c59b1f13d90a74c8b1c15d..30b396abe5b3758f9178cc5e4c61527378ba1275 100644 (file)
@@ -61,6 +61,9 @@ all: Makefile $(TOOLS) gigaslam grow
        @echo "==== Make of tools is good ===="
        @echo " "
 
+../lib/unittests.o: ../lib/unittests.c
+       (cd ../lib ; make unittests.o)
+
 test-cpp: test-cpp.o ../lib/unittests.o
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS)  -L../lib -o $@ test-cpp.o ../lib/unittests.o -lbac $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)