waf: convert NDR_NBT into shared library.
[kai/samba.git] / libcli / nbt / wscript_build
index a39f83564521eb82196843760a4d0ea6bcdbe0ef..a70db083e6c6324e96f54e1eee460cfe23634ddd 100644 (file)
@@ -6,36 +6,26 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
        autoproto='nbtname.h'
        )
 
+bld.SAMBA_SUBSYSTEM('lmhosts',
+                    source='lmhosts.c ../dns/dns_hosts_file.c',
+                    deps='replace talloc'
+                    )
 
-bld.SAMBA_LIBRARY('LIBCLI_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_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='LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL LIBCLI_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'
-       )
-
+                 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='LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG',
-       realname='samba/netbios.so'
-       )
+                 source='pynbt.c',
+                 public_deps='cli-nbt DYNCONFIG samba-hostconfig',
+                 realname='samba/netbios.so'
+                 )