]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/lib/Makefile.in
authorEric Bollengier <eric@baculasystems.com>
Mon, 20 Apr 2020 14:48:20 +0000 (16:48 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:16 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 4 09:06:06 2020 +0100

    Remove hardcoded reference to libintl

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Feb 14 15:34:23 2020 +0100

    Move bcrc32 as bee_lib_crc32

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Jan 10 18:12:08 2020 +0100

    Rename BEE_XXX_YYY_SRCS into EXTRA_XXX_YYY_SRCS and add --disable-bee ./configure option

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Apr 9 11:13:50 2019 +0200

    PSK: Add PSK to QT's applications

    - add "TLS PSK Enable" to resources
    - update hello messages
    - rename authenticatebase.c to .cc and add the file to the QT tools
      because of a RTTI compilation problem.
      I use .cc because it works best with both bacula's CORE and QT
      to be compiled as C++ and not C
    - call init_crypto() and init_signals() in tray-monitor

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Apr 4 22:49:59 2019 +0200

    Add bsys_test target

Author: Alain Spineux <alain@baculasystems.com>
Date:   Fri Mar 29 09:32:09 2019 +0100

    regress: Add unittest scan_test to test bsscanf() in scan.c

    - test bsscanf()

Author: Alain Spineux <alain@baculasystems.com>
Date:   Thu Mar 28 14:32:49 2019 +0100

    PSK: unify authentication into new authenticatebase.c in "bac" library

    - new unified AuthenticationBase class in lib/authenticatebase.{c,h}
    - AuthenticationBase include the code that is common to all daemons

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Mar 20 14:53:33 2019 +0100

    Add FD Calls Director feature to ease client behind NAT access

     - Implement scheduler in Client side to activate the feature
     - Refactor Run resource between the director and the file daemon
     - Allow to use the Director resource to connect a Director for the proxy command and the FDCallsDir
     - Add FDCallsDir state in show client
     - Add code to handle permanent connections bsock_meeting

    New Directive
     FileDaemon:Director:FDCallsDir=<yes/no>
     FileDaemon:Director:FDCallsDirReconnect=<time>
     FileDaemon:Director:FDCallsDirSchedule=<resource>

     Director:Client:FDCallsDir=<yes/no>

    New Resource
     FileDaemon:Schedule

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Feb 21 13:16:25 2019 +0100

    Add dlist_test to Makefile.in

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Sep 6 15:07:31 2018 +0200

    regress: Install unittests in $bin and execute them from here

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Fri Aug 17 14:33:44 2018 +0200

    Update unittests.

    Update unittests for alist/ilist classes.

    Fix alist compile error.

    Update bsnprintf unittests.

    Update compile for bsnprintf.

    Update bsock unittests - add data communication verification.

    Update bsockcore unittests - add data communication verification.

    Create all-unittests regression script for Bacula unit tests.

    Add bstat unit tests to regression.

    Add CRC32 unittests.

    Add crc32 unittests to regression.

    Update output.c unittests and add regression test.

    Update unittests, add conditional lockmanager initialization.

    When some unit tests does not require and use a lock manager and make
    tests very fast then lock manager cleanup function is executed before
    any lock manager thread has a chence to start which result in leaked
    memory false positive.

    Create base64 unit tests.

    Add base64 unit tests regression script.

    Small update to all-unittests.

    Update unittests for flist.

    Add flist regression unittests.

    Add fnmatch unittests and regression tests.

    The current unittests fail on on of the already prepared tests. Until
    resolved the overall unittests will fail on this one.

    Update output.c unittests.

    Update fnmatch.c unittests.

    Until resolved the unit test 13 will be disabled.

    Update sellist unittests.

    Update sha1 unittests.

    Update htable unittests.

    Update unittests fir ConfigFile/ini.c.

    The real fix for segv on collect-reload-test.

    Update unittests for lockmgr.c.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Jul 5 16:10:26 2018 +0200

    Fix backport

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sun Apr 2 14:44:02 2017 +0200

    Add missing row of characters in Makefile.in

Author: Kern Sibbald <kern@sibbald.com>
Date:   Sat Feb 11 08:57:36 2017 +0100

    Tweak Makefile alignments + fix stop when hitting depend: in tray-monitor configure

Author: Kern Sibbald <kern@sibbald.com>
Date:   Fri Jun 26 09:15:47 2015 +0200

    Do not compile crc32.c on Linux -- use new bcrc32.c only

bacula/src/lib/Makefile.in

index 3c91fd1f9b504845098d8453b5da58361f75575c..81d4fa4a11e5f2dbf0f5c471adf9d0bc398f28b1 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2000-2017 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
 # License: BSD 2-Clause; see file LICENSE-FOSS
 #
 @MCOMMON@
@@ -11,6 +11,7 @@ LIBBACCFG_LT_RELEASE = @LIBBACCFG_LT_RELEASE@
 ZLIBS = @ZLIBS@
 DEBUG = @DEBUG@
 CAP_LIBS = @CAP_LIBS@
+EXTRA_SRCS = @EXTRA_LIB_SRCS@
 
 #
 srcdir =       .
@@ -32,23 +33,27 @@ dummy:
 #
 INCLUDE_FILES = ../baconfig.h ../bacula.h ../bc_types.h \
       ../config.h ../jcr.h ../version.h \
+      authenticatebase.h \
       address_conf.h alist.h attr.h base64.h bsockcore.h \
       berrno.h bits.h bjson.h bpipe.h breg.h bregex.h \
       bsock.h bstat.h btime.h btimers.h crypto.h dlist.h \
       flist.h fnmatch.h guid_to_name.h htable.h lex.h \
       lib.h lz4.h md5.h mem_pool.h message.h \
-      openssl.h parse_conf.h plugins.h protos.h queue.h rblist.h \
+      openssl.h plugins.h protos.h queue.h rblist.h \
       runscript.h rwlock.h serial.h sellist.h sha1.h sha2.h \
       smartall.h status.h tls.h tree.h var.h \
-      watchdog.h workq.h ini.h collect.h \
-      lockmgr.h devlock.h output.h bwlimit.h
+      waitq.h watchdog.h workq.h \
+      parse_conf.h ini.h \
+      worker.h lockmgr.h devlock.h output.h bwlimit.h \
+      collect.h
 
 #
 # libbac
 #
 LIBBAC_SRCS = attr.c base64.c berrno.c bsys.c binflate.c bget_msg.c \
+      authenticatebase.cc \
       bnet.c bnet_server.c bsock.c bpipe.c bsnprintf.c bstat.c btime.c \
-      cram-md5.c crc32.c crypto.c daemon.c edit.c fnmatch.c \
+      cram-md5.c crypto.c daemon.c edit.c fnmatch.c \
       guid_to_name.c hmac.c jcr.c lex.c lz4.c alist.c dlist.c \
       md5.c message.c mem_pool.c openssl.c \
       plugins.c priv.c queue.c bregex.c bsockcore.c \
@@ -56,10 +61,13 @@ LIBBAC_SRCS = attr.c base64.c berrno.c bsys.c binflate.c bget_msg.c \
       signal.c smartall.c rblist.c tls.c tree.c \
       util.c var.c watchdog.c workq.c btimers.c \
       worker.c flist.c bcollector.c collect.c \
-      address_conf.c breg.c htable.c lockmgr.c devlock.c output.c bwlimit.c
+      address_conf.c breg.c htable.c lockmgr.c devlock.c output.c bwlimit.c \
+      bsock_meeting.c $(EXTRA_SRCS)
 
-LIBBAC_OBJS = $(LIBBAC_SRCS:.c=.o) 
-LIBBAC_LOBJS = $(LIBBAC_SRCS:.c=.lo) 
+LIBBAC_OBJS_TMP = $(LIBBAC_SRCS:.c=.o)
+LIBBAC_OBJS = $(LIBBAC_OBJS_TMP:.cc=.o)
+LIBBAC_LOBJS_TMP = $(LIBBAC_SRCS:.c=.lo)
+LIBBAC_LOBJS = $(LIBBAC_LOBJS_TMP:.cc=.lo)
 
 #
 # libbaccfg (config functions)
@@ -118,17 +126,19 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
        cd $(topdir) \
          && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
+bsys_test: Makefile bsys.c unittests.o
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) -o bsys_test.o bsys.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -L../findlib -o $@ bsys_test.o unittests.o $(DLIB) -lbac -lbacfind -lm $(LIBS) $(OPENSSL_LIBS)
+
 wait_test: Makefile bsys.c
        $(RMF) bsys.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bsys.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -L../findlib -o $@ bsys.o $(DLIB) -lbac -lbacfind -lm $(LIBS) $(OPENSSL_LIBS)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
-       $(RMF) bsys.o
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bsys.c
 
-output_test: Makefile output.c unittests.o
+output_test: Makefile libbac.la output.c unittests.o
        $(RMF) output.o
-       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) output.c
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) output.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ output.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
        $(RMF) output.o
@@ -136,13 +146,13 @@ output_test: Makefile output.c unittests.o
 
 lockmgr_test: Makefile libbac.la lockmgr.c unittests.o
        $(RMF) lockmgr.o
-       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) lockmgr.c
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) lockmgr.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ lockmgr.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
        $(RMF) lockmgr.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) lockmgr.c
 
-base64_test: Makefile base64.c unittests.o
+base64_test: Makefile libbac.la base64.c unittests.o
        $(RMF) base64.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) base64.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ base64.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -150,7 +160,7 @@ base64_test: Makefile base64.c unittests.o
        $(RMF) base64.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) base64.c
 
-flist_test: Makefile flist.c unittests.o
+flist_test: Makefile libbac.la flist.c unittests.o
        $(RMF) flist.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) flist.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ flist.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -158,7 +168,7 @@ flist_test: Makefile flist.c unittests.o
        $(RMF) flist.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) flist.c
 
-fnmatch_test: Makefile fnmatch.c unittests.o
+fnmatch_test: Makefile libbac.la fnmatch.c unittests.o
        $(RMF) fnmatch.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) fnmatch.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ fnmatch.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -166,7 +176,7 @@ fnmatch_test: Makefile fnmatch.c unittests.o
        $(RMF) fnmatch.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) fnmatch.c
 
-worker_test: Makefile worker.c
+worker_test: Makefile libbac.la worker.c
        $(RMF) worker.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) worker.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ worker.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -174,7 +184,7 @@ worker_test: Makefile worker.c
        $(RMF) worker.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) worker.c
 
-workq_test: Makefile workq.c
+workq_test: Makefile libbac.la workq.c
        $(RMF) workq.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) workq.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ workq.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -182,15 +192,15 @@ workq_test: Makefile workq.c
        $(RMF) workq.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) workq.c
 
-rwlock_test: Makefile rwlock.c
+rwlock_test: Makefile libbac.la rwlock.c
        $(RMF) rwlock.o
        $(CXX) -DTEST_RWLOCK $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) rwlock.c
-       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ rwlock.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ rwlock.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
        $(RMF) rwlock.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) rwlock.c
 
-devlock_test: Makefile
+devlock_test: Makefile libbac.la devlock.c
        $(RMF) devlock.o
        $(CXX) -DTEST_devlock $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) devlock.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ devlock.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -205,8 +215,8 @@ htable_test: Makefile libbac.la htable.c unittests.o
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
        $(RMF) htable.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) htable.c 
-alist_test: Makefile alist.c unittests.o
+
+alist_test: Makefile libbac.la alist.c unittests.o
        $(RMF) alist.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) alist.c
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ alist.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
@@ -214,13 +224,30 @@ alist_test: Makefile alist.c unittests.o
        $(RMF) alist.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) alist.c
 
-crc32_test: Makefile crc32.c unittests.o
-       $(RMF) crc32.o
-       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) crc32.c
-       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ crc32.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
+dlist_test: Makefile libbac.la dlist.c unittests.o
+       $(RMF) dlist.o
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) dlist.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ dlist.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
+       $(RMF) dlist.o
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) dlist.c
+
+crc32_test: Makefile libbac.la org_lib_crc32.c unittests.o
+       $(RMF) org_lib_crc32.o
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) org_lib_crc32.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ org_lib_crc32.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
-       $(RMF) crc32.o
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) crc32.c
+       $(RMF) org_lib_crc32.o
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) org_lib_crc32.c
+
+
+bee_crc32_test: Makefile libbac.la bee_lib_crc32.c unittests.o
+       $(RMF) bee_lib_crc32.o
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bee_lib_crc32.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ bee_lib_crc32.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
+       $(RMF) bee_lib_crc32.o
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bee_lib_crc32.c
 
 sellist_test: Makefile libbac.la sellist.c unittests.o
        $(RMF) sellist.o
@@ -230,6 +257,13 @@ sellist_test: Makefile libbac.la sellist.c unittests.o
        $(RMF) sellist.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) sellist.c
 
+bcrc32sum: Makefile bcrc32.o     
+       $(RMF) bcrc32.o
+       $(CXX) -DCRC32_SUM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) bcrc32.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ bcrc32.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
+       $(RMF) bcrc32.o
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bcrc32.c
+
 xml_test: Makefile libbac.la xml.c
        $(RMF) xml.o
        $(CXX) -DTEST_PROG $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) xml.c
@@ -285,6 +319,14 @@ bstat_test: Makefile libbac.la bstat.c unittests.o
        $(RMF) bstat.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bstat.c
 
+bsock_meeting_test: Makefile libbac.la bsock_meeting.c unittests.o
+       $(RMF) bsock_meeting.o
+       $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) bsock_meeting.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ bsock_meeting.o unittests.o $(DLIB) -lbac -lm $(LIBS)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
+       $(RMF) bsock_meeting.o
+       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bsock_meeting.c
+
 bsockcore_test: Makefile libbac.la bsockcore.c unittests.o
        $(RMF) bsockcore.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) bsockcore.c
@@ -301,6 +343,11 @@ bsock_test: Makefile libbac.la bsock.c unittests.o
        $(RMF) bsock.o
        $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bsock.c
 
+scan_test: Makefile libbac.la scan.c unittests.o
+       $(CXX) -o scan_test.o -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) scan.c
+       $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ scan_test.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/
+
 collect_test: Makefile libbac.la collect.c unittests.o
        $(RMF) collect.o
        $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE)  $(CFLAGS) collect.c