build: provide tevent-util as a public library
[kai/samba-autobuild/.git] / source4 / auth / ntlm / wscript_build
index f70bebb30c9184804f8c2dfb06fbcb3dd01ebfbd..b8634c8944d6dd44d37cb1b168e51209a436ad1e 100644 (file)
@@ -1,69 +1,65 @@
 #!/usr/bin/env python
 
-bld.SAMBA_MODULE('auth_sam_module',
+bld.SAMBA_MODULE('auth4_sam_module',
        source='auth_sam.c',
-       subsystem='auth',
-       init_function='auth_sam_init',
-       deps='SAMDB auth_sam ntlm_check LIBSAMBA-HOSTCONFIG'
+       subsystem='auth4',
+       init_function='auth4_sam_init',
+       deps='samdb auth4_sam NTLMSSP_COMMON samba-hostconfig'
        )
 
 
-bld.SAMBA_MODULE('auth_anonymous',
+bld.SAMBA_MODULE('auth4_anonymous',
        source='auth_anonymous.c',
-       subsystem='auth',
-       init_function='auth_anonymous_init'
+       subsystem='auth4',
+       init_function='auth4_anonymous_init',
+       deps='talloc'
        )
 
 
-bld.SAMBA_MODULE('auth_server',
+bld.SAMBA_MODULE('auth4_server',
        source='auth_server.c',
-       subsystem='auth',
-       init_function='auth_server_init',
-       deps='LIBSAMBA-UTIL LIBCLI_SMB CREDENTIALS_NTLM'
+       subsystem='auth4',
+       init_function='auth4_server_init',
+       deps='samba-util LIBCLI_SMB CREDENTIALS_NTLM'
        )
 
 
-bld.SAMBA_MODULE('auth_winbind',
+bld.SAMBA_MODULE('auth4_winbind',
        source='auth_winbind.c',
-       subsystem='auth',
-       init_function='auth_winbind_init',
-       deps='RPC_NDR_WINBIND MESSAGING LIBWBCLIENT'
+       subsystem='auth4',
+       init_function='auth4_winbind_init',
+       deps='RPC_NDR_WINBIND MESSAGING wbclient'
        )
 
 
-bld.SAMBA_MODULE('auth_developer',
+bld.SAMBA_MODULE('auth4_developer',
        source='auth_developer.c',
-       subsystem='auth',
-       init_function='auth_developer_init'
+       subsystem='auth4',
+       init_function='auth4_developer_init',
+       deps='talloc'
        )
 
 
-bld.SAMBA_MODULE('auth_unix',
+bld.SAMBA_MODULE('auth4_unix',
        source='auth_unix.c',
-       subsystem='auth',
-       init_function='auth_unix_init',
-       deps='pam PAM_ERRORS NSS_WRAPPER UID_WRAPPER LIBTSOCKET'
+       subsystem='auth4',
+       init_function='auth4_unix_init',
+       deps='pam PAM_ERRORS LIBTSOCKET'
        )
 
 
-bld.SAMBA_SUBSYSTEM('PAM_ERRORS',
-       source='pam_errors.c',
-        deps='talloc'
+bld.SAMBA_LIBRARY('auth4',
+       source='auth.c auth_util.c auth_simple.c',
+       autoproto='auth_proto.h',
+       deps='samba-util security samdb credentials tevent-util LIBWBCLIENT_OLD auth_unix_token',
+       private_library=True
        )
 
-
-bld.SAMBA_LIBRARY('auth',
-                  source='auth.c auth_util.c auth_simple.c',
-                  autoproto='auth_proto.h',
-                  deps='LIBSAMBA-UTIL LIBSECURITY SAMDB CREDENTIALS UTIL_TEVENT',
-                  private_library=True
-                  )
-
-bld.SAMBA_MODULE('auth_server_service',
+bld.SAMBA_MODULE('service_auth',
        source='auth_server_service.c',
        subsystem='service',
        init_function='server_service_auth_init',
-       deps='auth',
+       deps='auth4',
        internal_module=True
        )