summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/wscript_build84
-rw-r--r--source3/wscript_build84
2 files changed, 85 insertions, 83 deletions
diff --git a/source3/auth/wscript_build b/source3/auth/wscript_build
new file mode 100644
index 0000000000..bdfa5828c3
--- /dev/null
+++ b/source3/auth/wscript_build
@@ -0,0 +1,84 @@
+#!/usr/bin/env python
+
+AUTH_BUILTIN_SRC = 'auth_builtin.c'
+AUTH_DOMAIN_SRC = 'auth_domain.c'
+AUTH_SAM_SRC = 'auth_sam.c check_samsec.c'
+AUTH_SERVER_SRC = 'auth_server.c'
+AUTH_UNIX_SRC = 'auth_unix.c'
+AUTH_WINBIND_SRC = 'auth_winbind.c'
+AUTH_WBC_SRC = 'auth_wbc.c'
+AUTH_SCRIPT_SRC = 'auth_script.c'
+AUTH_NETLOGOND_SRC = 'auth_netlogond.c'
+
+AUTH_STATIC = ''
+AUTH_SRC = '''${AUTH_STATIC} auth.c auth_util.c token_util.c
+ server_info.c
+ server_info_sam.c
+ user_info.c
+ user_util.c
+ user_krb5.c
+ auth_compat.c auth_ntlmssp.c'''
+
+bld.SAMBA_SUBSYSTEM('AUTH',
+ source=AUTH_SRC,
+ deps='''AUTH_SAM AUTH_UNIX AUTH_WINBIND AUTH_WBC
+ AUTH_SERVER AUTH_DOMAIN AUTH_BUILTIN
+ AUTH_NETLOGOND
+ PLAINTEXT_AUTH SLCACHE DCUTIL''',
+ vars=locals())
+
+bld.SAMBA_MODULE('AUTH_SAM',
+ subsystem='AUTH',
+ source=AUTH_SAM_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_SAM'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_SAM'))
+
+bld.SAMBA_MODULE('AUTH_UNIX',
+ subsystem='AUTH',
+ source=AUTH_UNIX_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_UNIX'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_UNIX'))
+
+bld.SAMBA_MODULE('AUTH_WINBIND',
+ subsystem='AUTH',
+ source=AUTH_WINBIND_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_WINBIND'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_WINBIND'))
+
+bld.SAMBA_MODULE('AUTH_WBC',
+ subsystem='AUTH',
+ source=AUTH_WBC_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_WBC'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_WBC'))
+
+bld.SAMBA_MODULE('AUTH_SERVER',
+ subsystem='AUTH',
+ source=AUTH_SERVER_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_SERVER'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_SERVER'))
+
+bld.SAMBA_MODULE('AUTH_DOMAIN',
+ subsystem='AUTH',
+ source=AUTH_DOMAIN_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_DOMAIN'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_DOMAIN'))
+
+bld.SAMBA_MODULE('AUTH_BUILTIN',
+ subsystem='AUTH',
+ source=AUTH_BUILTIN_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_BUILTIN'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_BUILTIN'))
+
+bld.SAMBA_MODULE('AUTH_NETLOGOND',
+ subsystem='AUTH',
+ source=AUTH_NETLOGOND_SRC,
+ init_function='',
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('AUTH_NETLOGOND'),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('AUTH_NETLOGOND'))
diff --git a/source3/wscript_build b/source3/wscript_build
index e8e02edec4..044f869d37 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -526,26 +526,6 @@ SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
-AUTH_BUILTIN_SRC = 'auth/auth_builtin.c'
-AUTH_DOMAIN_SRC = 'auth/auth_domain.c'
-AUTH_SAM_SRC = 'auth/auth_sam.c auth/check_samsec.c'
-AUTH_SERVER_SRC = 'auth/auth_server.c'
-AUTH_UNIX_SRC = 'auth/auth_unix.c'
-AUTH_WINBIND_SRC = 'auth/auth_winbind.c'
-AUTH_WBC_SRC = 'auth/auth_wbc.c'
-AUTH_SCRIPT_SRC = 'auth/auth_script.c'
-AUTH_NETLOGOND_SRC = 'auth/auth_netlogond.c'
-
-AUTH_STATIC = ''
-AUTH_SRC = '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
- auth/server_info.c
- auth/server_info_sam.c
- auth/user_info.c
- auth/user_util.c
- auth/user_krb5.c
- auth/auth_compat.c auth/auth_ntlmssp.c
- ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
-
#FIXME: set IDMAP_STATIC during configuration
IDMAP_STATIC=''
IDMAP_RW_SRC = 'winbindd/idmap_rw.c'
@@ -1183,69 +1163,6 @@ bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
deps='talloc',
local_include=False)
-bld.SAMBA_SUBSYSTEM('AUTH',
- source=AUTH_SRC,
- deps='''AUTH_SAM AUTH_UNIX AUTH_WINBIND AUTH_WBC
- AUTH_SERVER AUTH_DOMAIN AUTH_BUILTIN
- AUTH_NETLOGOND''',
- vars=locals())
-
-bld.SAMBA_MODULE('AUTH_SAM',
- subsystem='AUTH',
- source=AUTH_SAM_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_UNIX',
- subsystem='AUTH',
- source=AUTH_UNIX_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_WINBIND',
- subsystem='AUTH',
- source=AUTH_WINBIND_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_WBC',
- subsystem='AUTH',
- source=AUTH_WBC_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_SERVER',
- subsystem='AUTH',
- source=AUTH_SERVER_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_DOMAIN',
- subsystem='AUTH',
- source=AUTH_DOMAIN_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_BUILTIN',
- subsystem='AUTH',
- source=AUTH_BUILTIN_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
-bld.SAMBA_MODULE('AUTH_NETLOGOND',
- subsystem='AUTH',
- source=AUTH_NETLOGOND_SRC,
- init_function='',
- internal_module=True,
- enabled=True)
-
bld.SAMBA_SUBSYSTEM('PDB',
source='',
deps='''PDB_TDBSAM PDB_LDAP PDB_ADS PDB_SMBPASSWD PDB_WBC_SAM''',
@@ -1902,6 +1819,7 @@ bld.RECURSE('../lib/tsocket')
bld.RECURSE('../lib/iniparser/src')
bld.RECURSE('../lib/crypto')
bld.RECURSE('modules')
+bld.RECURSE('auth')
bld.ENFORCE_GROUP_ORDERING()
bld.CHECK_PROJECT_RULES()