4d85d03f9f2b888a6f37c9b231f83213c35e9b77
[bbaumbach/samba-autobuild/.git] / source4 / heimdal_build / SConscript
1 Import('buildenv hostenv')
2
3 hostenv.StaticLibrary('heimdal_kdc',
4         ['../kdc/default_config.c','../kdc/kerberos5.c','../kdc/pkinit.c',
5          '../kdc/log.c','../kdc/misc.c','../kdc/524.c','../kdc/kerberos4.c',
6          '../kdc/kaserver.c','../kdc/process.c'])
7
8 hdb_asn1 = hostenv.ASN1('../heimdal/lib/hdb/hdb.asn1',ASN1PREFIX='hdb_asn1')
9 gssapi_asn1 = hostenv.ASN1('../heimdal/lib/gssapi/spnego.asn1',ASN1PREFIX='spnego_asn1')
10 k5_asn1 = hostenv.ASN1('../heimdal/lib/asn1/k5.asn1',ASN1PREFIX='k5_asn1')
11
12 hostenv.StaticLibrary('heimdal_hdb',
13         ['../heimdal/lib/hdb/db.c','../heimdal/lib/hdb/hdb.c','../heimdal/lib/hdb/ext.c','../heimdal/lib/hdb/keys.c',
14         '../heimdal/lib/hdb/mkey.c','../heimdal/lib/hdb/ndbm.c',hdb_asn1,
15         hostenv.ErrorTable('../heimdal/lib/hdb/hdb_err.et')])
16
17 hostenv.StaticLibrary('heimdal_gssapi',
18         ['../heimdal/lib/gssapi/init_sec_context.c','../heimdal/lib/gssapi/inquire_cred.c',
19         '../heimdal/lib/gssapi/release_buffer.c','../heimdal/lib/gssapi/release_cred.c',
20         '../heimdal/lib/gssapi/release_name.c','../heimdal/lib/gssapi/release_oid_set.c',
21         '../heimdal/lib/gssapi/sequence.c','../heimdal/lib/gssapi/test_oid_set_member.c',
22         '../heimdal/lib/gssapi/unwrap.c','../heimdal/lib/gssapi/verify_mic.c','../heimdal/lib/gssapi/wrap.c',
23         '../heimdal/lib/gssapi/address_to_krb5addr.c',
24         gssapi_asn1,'../heimdal/lib/gssapi/8003.c',
25         '../heimdal/lib/gssapi/accept_sec_context.c','../heimdal/lib/gssapi/acquire_cred.c',
26         '../heimdal/lib/gssapi/add_oid_set_member.c','../heimdal/lib/gssapi/arcfour.c',
27         '../heimdal/lib/gssapi/ccache_name.c','../heimdal/lib/gssapi/copy_ccache.c','../heimdal/lib/gssapi/cfx.c',
28         '../heimdal/lib/gssapi/compat.c','../heimdal/lib/gssapi/context_time.c',
29         '../heimdal/lib/gssapi/create_emtpy_oid_set.c','../heimdal/lib/gssapi/decapsulate.c',
30         '../heimdal/lib/gssapi/delete_sec_context.c','../heimdal/lib/gssapi/display_name.c',
31         '../heimdal/lib/gssapi/display_status.c','../heimdal/lib/gssapi/duplicate_name.c',
32         '../heimdal/lib/gssapi/encapsulate.c','../heimdal/lib/gssapi/external.c',
33         '../heimdal/lib/gssapi/get_mic.c','../heimdal/lib/gssapi/import_name.c','../heimdal/lib/gssapi/init.c'])
34
35 hostenv.StaticLibrary('heimdal_krb5',
36         ['../heimdal/lib/krb5/acache.c','../heimdal/lib/krb5/add_et_list.c','../heimdal/lib/krb5/addr_families.c',
37         '../heimdal/lib/krb5/appdefault.c','../heimdal/lib/krb5/asn1_glue.c','../heimdal/lib/krb5/auth_context.c',
38         '../heimdal/lib/krb5/build_ap_req.c','../heimdal/lib/krb5/build_auth.c','../heimdal/lib/krb5/cache.c',
39         '../heimdal/lib/krb5/changepw.c','../heimdal/lib/krb5/codec.c','../heimdal/lib/krb5/config_file.c',
40         '../heimdal/lib/krb5/config_file_netinfo.c','../heimdal/lib/krb5/constants.c',
41         '../heimdal/lib/krb5/context.c','../heimdal/lib/krb5/copy_host_realm.c','../heimdal/lib/krb5/crc.c',
42         '../heimdal/lib/krb5/creds.c','../heimdal/lib/krb5/crypto.c','../heimdal/lib/krb5/data.c',
43         '../heimdal/lib/krb5/eai_to_heim_errno.c','../heimdal/lib/krb5/error_string.c',
44         '../heimdal/lib/krb5/expand_hostname.c','../heimdal/lib/krb5/fcache.c',
45         '../heimdal/lib/krb5/free.c','../heimdal/lib/krb5/free_host_realm.c',
46         '../heimdal/lib/krb5/generate_seq_number.c','../heimdal/lib/krb5/generate_subkey.c',
47         '../heimdal/lib/krb5/get_cred.c','../heimdal/lib/krb5/get_default_principal.c',
48         '../heimdal/lib/krb5/get_default_realm.c','../heimdal/lib/krb5/get_for_creds.c',
49         '../heimdal/lib/krb5/get_host_realm.c','../heimdal/lib/krb5/get_in_tkt.c',
50         '../heimdal/lib/krb5/get_in_tkt_with_keytab.c','../heimdal/lib/krb5/get_port.c',
51         '../heimdal/lib/krb5/init_creds.c','../heimdal/lib/krb5/init_creds_pw.c','../heimdal/lib/krb5/kcm.c',
52         '../heimdal/lib/krb5/keyblock.c','../heimdal/lib/krb5/keytab.c','../heimdal/lib/krb5/keytab_any.c',
53         '../heimdal/lib/krb5/keytab_file.c','../heimdal/lib/krb5/keytab_memory.c',
54         '../heimdal/lib/krb5/keytab_keyfile.c','../heimdal/lib/krb5/keytab_krb4.c','../heimdal/lib/krb5/krbhst.c',
55         '../heimdal/lib/krb5/log.c','../heimdal/lib/krb5/mcache.c','../heimdal/lib/krb5/misc.c',
56         '../heimdal/lib/krb5/mk_error.c','../heimdal/lib/krb5/mk_priv.c','../heimdal/lib/krb5/mk_rep.c',
57         '../heimdal/lib/krb5/mk_req.c','../heimdal/lib/krb5/mk_req_ext.c','../heimdal/lib/krb5/mit_glue.c',
58         '../heimdal/lib/krb5/n-fold.c','../heimdal/lib/krb5/padata.c','../heimdal/lib/krb5/pkinit.c',
59         '../heimdal/lib/krb5/principal.c','../heimdal/lib/krb5/rd_cred.c','../heimdal/lib/krb5/rd_error.c',
60         '../heimdal/lib/krb5/rd_priv.c','../heimdal/lib/krb5/rd_rep.c','../heimdal/lib/krb5/rd_req.c',
61         '../heimdal/lib/krb5/replay.c','../heimdal/lib/krb5/send_to_kdc.c',
62         '../heimdal/lib/krb5/set_default_realm.c','../heimdal/lib/krb5/store.c','../heimdal/lib/krb5/store_emem.c',
63         '../heimdal/lib/krb5/store_fd.c','../heimdal/lib/krb5/store_mem.c','../heimdal/lib/krb5/ticket.c',
64         '../heimdal/lib/krb5/time.c','../heimdal/lib/krb5/transited.c','../heimdal/lib/krb5/v4_glue.c',
65         '../heimdal/lib/krb5/version.c','../heimdal/lib/krb5/warn.c',
66         hostenv.ErrorTable('../heimdal/lib/krb5/krb5_err.et'),
67         hostenv.ErrorTable('../heimdal/lib/krb5/heim_err.et'),
68         hostenv.ErrorTable('../heimdal/lib/krb5/k524_err.et')])
69
70 hostenv.StaticLibrary('heimdal_asn1', k5_asn1)
71
72 hostenv.StaticLibrary('heimdal_des',
73         ['../heimdal/lib/des/aes.c','../heimdal/lib/des/des.c','../heimdal/lib/des/md4.c','../heimdal/lib/des/md5.c',
74         '../heimdal/lib/des/rc2.c','../heimdal/lib/des/rc4.c','../heimdal/lib/des/rijndael-alg-fst.c',
75         '../heimdal/lib/des/rnd_keys.c','../heimdal/lib/des/sha.c','../heimdal/lib/des/ui.c'])
76
77 hostenv.StaticLibrary('roken_gai_strerror', ['../heimdal/lib/roken/gai_strerror.c'])
78 hostenv.StaticLibrary('roken_inet_aton', ['../heimdal/lib/roken/inet_aton.c'])
79 hostenv.StaticLibrary('roken_addrinfo', 
80         ['../heimdal/lib/roken/getaddrinfo.c','../heimdal/lib/roken/freeaddrinfo.c',
81          '../heimdal/lib/roken/getipnodebyaddr.c','../heimdal/lib/roken/getipnodebyname.c',
82          '../heimdal/lib/roken/freehostent.c', '../heimdal/lib/roken/copyhostent.c',
83          '../heimdal/lib/roken/hostent_find_fqdn.c'])
84
85 hostenv.StaticLibrary('roken',
86         ['../heimdal/lib/roken/base64.c','../heimdal/lib/roken/bswap.c','../heimdal/lib/roken/get_window_size.c',
87         '../heimdal/lib/roken/getprogname.c','../heimdal/lib/roken/h_errno.c','../heimdal/lib/roken/issuid.c',
88         '../heimdal/lib/roken/net_read.c','../heimdal/lib/roken/net_write.c','../heimdal/lib/roken/parse_time.c',
89         '../heimdal/lib/roken/parse_units.c','../heimdal/lib/roken/resolve.c',
90         '../heimdal/lib/roken/roken_gethostby.c','../heimdal/lib/roken/signal.c','../heimdal/lib/roken/vis.c',
91         '../heimdal/lib/roken/strlwr.c','../heimdal/lib/roken/strsep_copy.c','../heimdal/lib/roken/strupr.c',
92         '../heimdal/lib/roken/strpool.c','heimdal_build/replace.c'])
93
94 hostenv.StaticLibrary('heimdal_vers',['../heimdal/lib/version/print_version.c'])
95 hostenv.StaticLibrary('heimdal_glue',['heimdal_build/glue.c'])
96 hostenv.StaticLibrary('heimdal_com_err',
97         ['../heimdal/lib/com_err/com_err.c','../heimdal/lib/com_err/error.c'])
98
99 buildenv.Program('asn1_compile',
100         ['../heimdal/lib/asn1/main.c','../heimdal/lib/asn1/gen.c',
101         '../heimdal/lib/asn1/gen_copy.c','../heimdal/lib/asn1/gen_decode.c',
102         '../heimdal/lib/asn1/gen_encode.c','../heimdal/lib/asn1/gen_free.c',
103         '../heimdal/lib/asn1/gen_glue.c','../heimdal/lib/asn1/gen_length.c',
104         '../heimdal/lib/asn1/hash.c','../heimdal/lib/asn1/lex.l',
105         '../heimdal/lib/asn1/parse.y','../heimdal/lib/roken/emalloc.c',
106         '../heimdal/lib/roken/getarg.c','../heimdal/lib/roken/setprogname.c',
107         '../heimdal/lib/roken/strupr.c','../heimdal/lib/roken/getprogname.c',
108         '../heimdal/lib/roken/get_window_size.c','../heimdal/lib/roken/estrdup.c',
109         '../heimdal/lib/roken/ecalloc.c','../heimdal/lib/asn1/symbol.c',
110         'heimdal_build/replace.c','../heimdal/lib/vers/print_version.c',
111         'lib/replace/snprintf.c','lib/replace/replace.c'])
112
113 buildenv.Program('compile_et',
114         ['../heimdal/lib/vers/print_version.c','../heimdal/lib/com_err/lex.l','../heimdal/lib/com_err/parse.y',
115         '../heimdal/lib/com_err/compile_et.c','../heimdal/lib/roken/getarg.c',
116         '../heimdal/lib/roken/get_window_size.c','../heimdal/lib/roken/getprogname.c',
117         '../heimdal/lib/roken/strupr.c','../heimdal/lib/roken/setprogname.c','heimdal_build/replace.c',
118         'lib/replace/snprintf.c','lib/replace/replace.c'])