Rename 'errors' to 'samba-errors' and make it public.
[obnox/samba/samba-obnox.git] / libcli / ldap / wscript_build
index d3b8446e276d8cd731f8f56218d2b70e86c35ec1..db5b1df497a7ae5605433b70f2450a76fa024b3c 100644 (file)
@@ -1,17 +1,8 @@
 #!/usr/bin/env python
 
-bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
-       source='ldap_message.c',
-       public_deps='LIBSAMBA-ERRORS talloc ldb',
-       public_headers='ldap_message.h ldap_errors.h',
-       deps='LIBSAMBA-UTIL ASN1_UTIL'
-       )
-
-
-bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
-       source='ldap_ndr.c',
-       public_deps='LIBSAMBA-ERRORS talloc',
-       public_headers='ldap_ndr.h',
-       deps='LIBSAMBA-UTIL ldb NDR_SECURITY tevent'
-       )
-
+bld.SAMBA_LIBRARY('cli-ldap-common',
+                  source='ldap_message.c ldap_ndr.c',
+                  public_deps='samba-errors talloc ldb',
+                  private_headers='ldap_message.h ldap_errors.h ldap_ndr.h',
+                  deps='samba-util asn1util NDR_SECURITY tevent',
+                  private_library=True)