build: provide tevent-util as a public library
[ab/samba.git/.git] / libcli / nbt / wscript_build
index ec2b4730331e90deb9028783a0826eae84117ed9..2c70a1d775aec364cadeeda9481ef10de5d36f8d 100644 (file)
@@ -6,36 +6,27 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
        autoproto='nbtname.h'
        )
 
-
-bld.SAMBA_LIBRARY('cli_nbt',
-       source='lmhosts.c nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c dns_hosts_file.c',
-       public_deps='LIBNDR NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket libsamba-util',
-       private_library=True
-       )
-
-
-bld.SAMBA_BINARY('nmblookup',
-       source='tools/nmblookup.c',
-       manpages='man/nmblookup.1',
-       deps='libsamba-hostconfig libsamba-util cli_nbt popt POPT_SAMBA libnetif LIBCLI_RESOLVE'
-       )
-
-
-bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
-       source='../ndr_netlogon.c',
-       public_deps='LIBNDR NDR_SECURITY'
-       )
-
-
-bld.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
-       source='../netlogon.c',
-       public_deps='libsamba-util LIBCLI_NDR_NETLOGON'
-       )
-
-
-bld.SAMBA_PYTHON('python_netbios',
-       source='pynbt.c',
-       public_deps='cli_nbt DYNCONFIG libsamba-hostconfig',
-       realname='samba/netbios.so'
-       )
+bld.SAMBA_SUBSYSTEM('lmhosts',
+                    source='lmhosts.c ../dns/dns_hosts_file.c',
+                    deps='replace talloc'
+                    )
+
+if bld.env._SAMBA_BUILD_ == 4:
+    bld.SAMBA_LIBRARY('cli-nbt',
+                      source='nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c',
+                      public_deps='ndr NDR_NBT tevent tevent-util NDR_SECURITY samba_socket samba-util lmhosts',
+                      private_library=True
+                      )
+
+    bld.SAMBA_BINARY('nmblookup',
+                     source='tools/nmblookup.c',
+                     manpages='man/nmblookup.1',
+                     deps='samba-hostconfig samba-util cli-nbt popt POPT_SAMBA netif LIBCLI_RESOLVE'
+                     )
+
+    bld.SAMBA_PYTHON('python_netbios',
+                     source='pynbt.c',
+                     public_deps='cli-nbt DYNCONFIG samba-hostconfig',
+                     realname='samba/netbios.so'
+                     )