lib: Make DEBUG a subsystem of its own
authorVolker Lendecke <vl@samba.org>
Wed, 30 Jul 2014 14:12:54 +0000 (14:12 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 1 Aug 2014 22:36:50 +0000 (00:36 +0200)
In the future this might become a library, but even with the SUBSYSTEM
it should be clear what debug.c depends upon.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Aug  2 00:36:50 CEST 2014 on sn-devel-104

lib/util/wscript_build

index 6f625dc061ddff2e2828ccc14ce87aa6786e103e..7c4abf9c0cd18b976fe99510532295836acbaa5e 100755 (executable)
@@ -10,16 +10,21 @@ bld.SAMBA_SUBSYSTEM('close-low-fd',
                     deps='replace',
                     local_include=False)
 
+bld.SAMBA_SUBSYSTEM('samba-debug',
+                    source='debug.c',
+                    deps='replace time-basic close-low-fd talloc',
+                    local_include=False)
+
 bld.SAMBA_LIBRARY('samba-util',
                   source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
                     util_file.c time.c rbtree.c rfc1738.c select.c getpass.c
                     genrand.c fsusage.c blocking.c become_daemon.c
                     signal.c system.c params.c util.c util_id.c util_net.c
-                    util_strlist.c util_paths.c idtree.c debug.c fault.c base64.c
+                    util_strlist.c util_paths.c idtree.c fault.c base64.c
                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
                     server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
                     tevent_debug.c util_process.c memcache.c''',
-                  deps='DYNCONFIG time-basic close-low-fd',
+                  deps='DYNCONFIG time-basic close-low-fd samba-debug',
                   public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
                   public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h',
                   header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],