summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/SConscript16
-rw-r--r--source4/auth/gensec/SConscript4
-rw-r--r--source4/auth/ntlmssp/SConscript5
3 files changed, 16 insertions, 9 deletions
diff --git a/source4/auth/SConscript b/source4/auth/SConscript
index 557690cfdb..a14fc2f48d 100644
--- a/source4/auth/SConscript
+++ b/source4/auth/SConscript
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
Import('hostenv')
hostenv.StaticLibrary('auth_sam.c')
@@ -12,7 +13,18 @@ if hostenv['configure']:
have_pam = conf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'c', 'pam_start')
conf.Finish()
+proto_files = []
hostenv.StaticLibrary('pam_errors.c')
-hostenv.StaticLibrary('auth',['auth.c','auth_util.c','auth_sam_reply.c','ntlm_check.c'])
+proto_files += ['pam_errors.c']
+auth_files = ['auth.c','auth_util.c','auth_sam_reply.c','ntlm_check.c']
+proto_files += auth_files
+hostenv.StaticLibrary('auth',auth_files)
-SConscript(dirs=['ntlmssp','kerberos','gensec'])
+hostenv.proto_headers += hostenv.CProtoHeader('proto.h', proto_files)
+
+hostenv.StaticLibrary('gensec_ntlmssp',
+ ['ntlmssp/ntlmssp_parse.c', 'ntlmssp/ntlmssp.c',
+ 'ntlmssp/ntlmssp_sign.c','ntlmssp/ntlmssp_client.c',
+ 'ntlmssp/ntlmssp_server.c'])
+
+SConscript(dirs=['kerberos','gensec'])
diff --git a/source4/auth/gensec/SConscript b/source4/auth/gensec/SConscript
index 93b291fb1b..404f70e77c 100644
--- a/source4/auth/gensec/SConscript
+++ b/source4/auth/gensec/SConscript
@@ -1,9 +1,9 @@
-Import('hostenv', 'proto_files')
+Import('hostenv')
gensec_files = ['gensec.c', 'gensec_krb5.c', 'gensec_gssapi.c', 'spnego.c',
'schannel.c', 'schannel_sign.c', 'schannel_state.c']
-proto_files += [File(x) for x in gensec_files]
+hostenv.proto_headers += hostenv.CProtoHeader('proto.h', gensec_files)
hostenv.StaticLibrary('gensec',['gensec.c'])
hostenv.StaticLibrary('gensec_krb5',['gensec_krb5.c'])
diff --git a/source4/auth/ntlmssp/SConscript b/source4/auth/ntlmssp/SConscript
deleted file mode 100644
index 1fb21c02cd..0000000000
--- a/source4/auth/ntlmssp/SConscript
+++ /dev/null
@@ -1,5 +0,0 @@
-Import('hostenv')
-
-hostenv.StaticLibrary('gensec_ntlmssp',
- ['ntlmssp_parse.c','ntlmssp.c','ntlmssp_sign.c','ntlmssp_client.c',
- 'ntlmssp_server.c'])