r10509: Some more sconscript fixes. Now getting to link stage for smbclient
[bbaumbach/samba-autobuild/.git] / source4 / auth / SConscript
1 #!/usr/bin/env python
2 Import('hostenv')
3
4 hostenv.StaticLibrary('auth_sam.c')
5 hostenv.StaticLibrary('auth_anonymous.c')
6 hostenv.StaticLibrary('auth_winbind.c')
7 hostenv.StaticLibrary('auth_domain.c')
8 hostenv.StaticLibrary('auth_developer.c')
9 hostenv.StaticLibrary('auth_unix.c')
10
11 if hostenv['configure']:
12     conf = hostenv.Configure()
13     have_pam = conf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'c', 'pam_start')
14     conf.Finish()
15
16 proto_files = []
17 hostenv.StaticLibrary('pam_errors.c')
18 proto_files += ['pam_errors.c', 'auth_sam.c']
19 auth_files = ['auth.c','auth_util.c','auth_sam_reply.c','ntlm_check.c']
20 proto_files += auth_files
21 hostenv.StaticLibrary('auth',auth_files)
22
23 ntlmssp_files = ['ntlmssp/ntlmssp_parse.c', 'ntlmssp/ntlmssp.c',
24                 'ntlmssp/ntlmssp_sign.c','ntlmssp/ntlmssp_client.c',
25                 'ntlmssp/ntlmssp_server.c'] 
26 proto_files += ntlmssp_files
27 hostenv.StaticLibrary('gensec_ntlmssp', ntlmssp_files)
28
29 kerberos_files = ['kerberos/kerberos.c','kerberos/clikrb5.c',
30         'kerberos/kerberos_verify.c','kerberos/kerberos_util.c',
31         'kerberos/kerberos_pac.c','kerberos/gssapi_parse.c',
32         'kerberos/krb5_init_context.c']
33
34 proto_files += kerberos_files
35
36 hostenv.StaticLibrary('kerberos', kerberos_files)
37
38 hostenv.proto_headers += hostenv.CProtoHeader('proto.h', proto_files)
39
40 SConscript(dirs=['gensec'])