build: autogenarate VPATH by configure
[tprouty/samba.git] / source4 / heimdal_build / internal.mk
1 heimdalbuildsrcdir = $(heimdalsrcdir)/../heimdal_build
2
3 HEIMDAL_VPATH = $(heimdalbuildsrcdir):$(heimdalsrcdir)/lib/asn1:$(heimdalsrcdir)/lib/krb5:$(heimdalsrcdir)/lib/gssapi:$(heimdalsrcdir)/lib/hdb:$(heimdalsrcdir)/lib/roken:$(heimdalsrcdir)/lib/des
4
5 #######################
6 # Start SUBSYSTEM HEIMDAL_KDC
7 [SUBSYSTEM::HEIMDAL_KDC]
8 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/kdc
9 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_KRB5 HEIMDAL_HDB HEIMDAL_HEIM_ASN1 HEIMDAL_DIGEST_ASN1 HEIMDAL_KX509_ASN1
10 PUBLIC_DEPENDENCIES = HEIMDAL_NTLM HEIMDAL_HCRYPTO
11 # End SUBSYSTEM HEIMDAL_KDC
12 #######################
13
14
15 HEIMDAL_KDC_OBJ_FILES = \
16         $(heimdalsrcdir)/kdc/default_config.o \
17         $(heimdalsrcdir)/kdc/kerberos5.o \
18         $(heimdalsrcdir)/kdc/krb5tgs.o \
19         $(heimdalsrcdir)/kdc/pkinit.o \
20         $(heimdalsrcdir)/kdc/log.o \
21         $(heimdalsrcdir)/kdc/misc.o \
22         $(heimdalsrcdir)/kdc/524.o \
23         $(heimdalsrcdir)/kdc/kerberos4.o \
24         $(heimdalsrcdir)/kdc/kaserver.o \
25         $(heimdalsrcdir)/kdc/digest.o \
26         $(heimdalsrcdir)/kdc/process.o \
27         $(heimdalsrcdir)/kdc/windc.o \
28         $(heimdalsrcdir)/kdc/kx509.o
29
30 [SUBSYSTEM::HEIMDAL_NTLM]
31 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/ntlm
32 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5
33
34 HEIMDAL_NTLM_OBJ_FILES = \
35         $(heimdalsrcdir)/lib/ntlm/ntlm.o
36
37 [SUBSYSTEM::HEIMDAL_HDB_KEYS]
38 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hdb
39 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5 \
40                                            HEIMDAL_HDB_ASN1
41
42 HEIMDAL_HDB_KEYS_OBJ_FILES = $(heimdalsrcdir)/lib/hdb/keys.o
43
44 #######################
45 # Start SUBSYSTEM HEIMDAL_HDB
46 [SUBSYSTEM::HEIMDAL_HDB]
47 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hdb
48 PRIVATE_DEPENDENCIES = HDB_LDB HEIMDAL_KRB5 HEIMDAL_HDB_KEYS HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_COM_ERR HEIMDAL_HDB_ASN1
49 # End SUBSYSTEM HEIMDAL_HDB
50 #######################
51
52 HEIMDAL_HDB_OBJ_FILES = \
53         $(heimdalsrcdir)/lib/hdb/db.o \
54         $(heimdalsrcdir)/lib/hdb/dbinfo.o \
55         $(heimdalsrcdir)/lib/hdb/hdb.o \
56         $(heimdalsrcdir)/lib/hdb/ext.o \
57         $(heimdalsrcdir)/lib/hdb/keytab.o \
58         $(heimdalsrcdir)/lib/hdb/mkey.o \
59         $(heimdalsrcdir)/lib/hdb/ndbm.o \
60         $(heimdalsrcdir)/lib/hdb/hdb_err.o
61
62 #######################
63 # Start SUBSYSTEM HEIMDAL_GSSAPI
64 [SUBSYSTEM::HEIMDAL_GSSAPI]
65 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/gssapi -I$(heimdalsrcdir)/lib/gssapi/gssapi -I$(heimdalsrcdir)/lib/gssapi/spnego -I$(heimdalsrcdir)/lib/gssapi/krb5 -I$(heimdalsrcdir)/lib/gssapi/mech
66 PRIVATE_DEPENDENCIES = HEIMDAL_HCRYPTO HEIMDAL_HEIM_ASN1 HEIMDAL_SPNEGO_ASN1
67 PUBLIC_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_KRB5
68 # End SUBSYSTEM HEIMDAL_GSSAPI
69 #######################
70
71 HEIMDAL_GSSAPI_OBJ_FILES = \
72         $(heimdalsrcdir)/lib/gssapi/mech/context.o \
73         $(heimdalsrcdir)/lib/gssapi/mech/gss_krb5.o \
74         $(heimdalsrcdir)/lib/gssapi/mech/gss_mech_switch.o \
75         $(heimdalsrcdir)/lib/gssapi/mech/gss_process_context_token.o \
76         $(heimdalsrcdir)/lib/gssapi/mech/gss_buffer_set.o \
77         $(heimdalsrcdir)/lib/gssapi/mech/gss_add_cred.o \
78         $(heimdalsrcdir)/lib/gssapi/mech/gss_add_oid_set_member.o \
79         $(heimdalsrcdir)/lib/gssapi/mech/gss_compare_name.o \
80         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_oid_set.o \
81         $(heimdalsrcdir)/lib/gssapi/mech/gss_create_empty_oid_set.o \
82         $(heimdalsrcdir)/lib/gssapi/mech/gss_decapsulate_token.o \
83         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred_by_oid.o \
84         $(heimdalsrcdir)/lib/gssapi/mech/gss_canonicalize_name.o \
85         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_sec_context_by_oid.o \
86         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_names_for_mech.o \
87         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_mechs_for_name.o \
88         $(heimdalsrcdir)/lib/gssapi/mech/gss_wrap_size_limit.o \
89         $(heimdalsrcdir)/lib/gssapi/mech/gss_names.o \
90         $(heimdalsrcdir)/lib/gssapi/mech/gss_verify.o \
91         $(heimdalsrcdir)/lib/gssapi/mech/gss_display_name.o \
92         $(heimdalsrcdir)/lib/gssapi/mech/gss_duplicate_oid.o \
93         $(heimdalsrcdir)/lib/gssapi/mech/gss_display_status.o \
94         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_buffer.o \
95         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_oid.o \
96         $(heimdalsrcdir)/lib/gssapi/mech/gss_test_oid_set_member.o \
97         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_cred.o \
98         $(heimdalsrcdir)/lib/gssapi/mech/gss_set_sec_context_option.o \
99         $(heimdalsrcdir)/lib/gssapi/mech/gss_export_name.o \
100         $(heimdalsrcdir)/lib/gssapi/mech/gss_seal.o \
101         $(heimdalsrcdir)/lib/gssapi/mech/gss_acquire_cred.o \
102         $(heimdalsrcdir)/lib/gssapi/mech/gss_unseal.o \
103         $(heimdalsrcdir)/lib/gssapi/mech/gss_verify_mic.o \
104         $(heimdalsrcdir)/lib/gssapi/mech/gss_accept_sec_context.o \
105         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred_by_mech.o \
106         $(heimdalsrcdir)/lib/gssapi/mech/gss_indicate_mechs.o \
107         $(heimdalsrcdir)/lib/gssapi/mech/gss_delete_sec_context.o \
108         $(heimdalsrcdir)/lib/gssapi/mech/gss_sign.o \
109         $(heimdalsrcdir)/lib/gssapi/mech/gss_utils.o \
110         $(heimdalsrcdir)/lib/gssapi/mech/gss_init_sec_context.o \
111         $(heimdalsrcdir)/lib/gssapi/mech/gss_oid_equal.o \
112         $(heimdalsrcdir)/lib/gssapi/mech/gss_oid_to_str.o \
113         $(heimdalsrcdir)/lib/gssapi/mech/gss_context_time.o \
114         $(heimdalsrcdir)/lib/gssapi/mech/gss_encapsulate_token.o \
115         $(heimdalsrcdir)/lib/gssapi/mech/gss_get_mic.o \
116         $(heimdalsrcdir)/lib/gssapi/mech/gss_import_sec_context.o \
117         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred.o \
118         $(heimdalsrcdir)/lib/gssapi/mech/gss_wrap.o \
119         $(heimdalsrcdir)/lib/gssapi/mech/gss_import_name.o \
120         $(heimdalsrcdir)/lib/gssapi/mech/gss_duplicate_name.o \
121         $(heimdalsrcdir)/lib/gssapi/mech/gss_unwrap.o \
122         $(heimdalsrcdir)/lib/gssapi/mech/gss_export_sec_context.o \
123         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_context.o \
124         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_name.o \
125         $(heimdalsrcdir)/lib/gssapi/mech/gss_set_cred_option.o \
126         $(heimdalsrcdir)/lib/gssapi/mech/gss_pseudo_random.o \
127         $(heimdalsrcdir)/lib/gssapi/asn1_GSSAPIContextToken.o \
128         $(heimdalsrcdir)/lib/gssapi/spnego/init_sec_context.o \
129         $(heimdalsrcdir)/lib/gssapi/spnego/external.o \
130         $(heimdalsrcdir)/lib/gssapi/spnego/compat.o \
131         $(heimdalsrcdir)/lib/gssapi/spnego/context_stubs.o \
132         $(heimdalsrcdir)/lib/gssapi/spnego/cred_stubs.o \
133         $(heimdalsrcdir)/lib/gssapi/spnego/accept_sec_context.o \
134         $(heimdalsrcdir)/lib/gssapi/krb5/copy_ccache.o \
135         $(heimdalsrcdir)/lib/gssapi/krb5/delete_sec_context.o \
136         $(heimdalsrcdir)/lib/gssapi/krb5/init_sec_context.o \
137         $(heimdalsrcdir)/lib/gssapi/krb5/context_time.o \
138         $(heimdalsrcdir)/lib/gssapi/krb5/init.o \
139         $(heimdalsrcdir)/lib/gssapi/krb5/address_to_krb5addr.o \
140         $(heimdalsrcdir)/lib/gssapi/krb5/get_mic.o \
141         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_context.o \
142         $(heimdalsrcdir)/lib/gssapi/krb5/add_cred.o \
143         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred.o \
144         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred_by_oid.o \
145         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred_by_mech.o \
146         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_mechs_for_name.o \
147         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_names_for_mech.o \
148         $(heimdalsrcdir)/lib/gssapi/krb5/indicate_mechs.o \
149         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_sec_context_by_oid.o \
150         $(heimdalsrcdir)/lib/gssapi/krb5/export_sec_context.o \
151         $(heimdalsrcdir)/lib/gssapi/krb5/import_sec_context.o \
152         $(heimdalsrcdir)/lib/gssapi/krb5/duplicate_name.o \
153         $(heimdalsrcdir)/lib/gssapi/krb5/import_name.o \
154         $(heimdalsrcdir)/lib/gssapi/krb5/compare_name.o \
155         $(heimdalsrcdir)/lib/gssapi/krb5/export_name.o \
156         $(heimdalsrcdir)/lib/gssapi/krb5/canonicalize_name.o \
157         $(heimdalsrcdir)/lib/gssapi/krb5/unwrap.o \
158         $(heimdalsrcdir)/lib/gssapi/krb5/wrap.o \
159         $(heimdalsrcdir)/lib/gssapi/krb5/release_name.o \
160         $(heimdalsrcdir)/lib/gssapi/krb5/cfx.o \
161         $(heimdalsrcdir)/lib/gssapi/krb5/8003.o \
162         $(heimdalsrcdir)/lib/gssapi/krb5/arcfour.o \
163         $(heimdalsrcdir)/lib/gssapi/krb5/encapsulate.o \
164         $(heimdalsrcdir)/lib/gssapi/krb5/display_name.o \
165         $(heimdalsrcdir)/lib/gssapi/krb5/sequence.o \
166         $(heimdalsrcdir)/lib/gssapi/krb5/display_status.o \
167         $(heimdalsrcdir)/lib/gssapi/krb5/release_buffer.o \
168         $(heimdalsrcdir)/lib/gssapi/krb5/external.o \
169         $(heimdalsrcdir)/lib/gssapi/krb5/compat.o \
170         $(heimdalsrcdir)/lib/gssapi/krb5/acquire_cred.o \
171         $(heimdalsrcdir)/lib/gssapi/krb5/release_cred.o \
172         $(heimdalsrcdir)/lib/gssapi/krb5/set_cred_option.o \
173         $(heimdalsrcdir)/lib/gssapi/krb5/decapsulate.o \
174         $(heimdalsrcdir)/lib/gssapi/krb5/verify_mic.o \
175         $(heimdalsrcdir)/lib/gssapi/krb5/accept_sec_context.o \
176         $(heimdalsrcdir)/lib/gssapi/krb5/set_sec_context_option.o \
177         $(heimdalsrcdir)/lib/gssapi/krb5/process_context_token.o \
178         $(heimdalsrcdir)/lib/gssapi/krb5/prf.o
179
180
181 #######################
182 # Start SUBSYSTEM HEIMDAL_KRB5
183 [SUBSYSTEM::HEIMDAL_KRB5]
184 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/krb5 -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/com_err 
185 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_PKINIT_ASN1 HEIMDAL_WIND
186 PUBLIC_DEPENDENCIES = HEIMDAL_KRB5_ASN1 HEIMDAL_GLUE HEIMDAL_HX509 HEIMDAL_HCRYPTO
187 # End SUBSYSTEM HEIMDAL_KRB5
188 #######################
189
190 HEIMDAL_KRB5_OBJ_FILES = \
191         $(heimdalsrcdir)/lib/krb5/acache.o \
192         $(heimdalsrcdir)/lib/krb5/add_et_list.o \
193         $(heimdalsrcdir)/lib/krb5/addr_families.o \
194         $(heimdalsrcdir)/lib/krb5/appdefault.o \
195         $(heimdalsrcdir)/lib/krb5/asn1_glue.o \
196         $(heimdalsrcdir)/lib/krb5/auth_context.o \
197         $(heimdalsrcdir)/lib/krb5/build_ap_req.o \
198         $(heimdalsrcdir)/lib/krb5/build_auth.o \
199         $(heimdalsrcdir)/lib/krb5/cache.o \
200         $(heimdalsrcdir)/lib/krb5/changepw.o \
201         $(heimdalsrcdir)/lib/krb5/codec.o \
202         $(heimdalsrcdir)/lib/krb5/config_file.o \
203         $(heimdalsrcdir)/lib/krb5/config_file_netinfo.o \
204         $(heimdalsrcdir)/lib/krb5/constants.o \
205         $(heimdalsrcdir)/lib/krb5/context.o \
206         $(heimdalsrcdir)/lib/krb5/convert_creds.o \
207         $(heimdalsrcdir)/lib/krb5/copy_host_realm.o \
208         $(heimdalsrcdir)/lib/krb5/crc.o \
209         $(heimdalsrcdir)/lib/krb5/creds.o \
210         $(heimdalsrcdir)/lib/krb5/crypto.o \
211         $(heimdalsrcdir)/lib/krb5/data.o \
212         $(heimdalsrcdir)/lib/krb5/eai_to_heim_errno.o \
213         $(heimdalsrcdir)/lib/krb5/error_string.o \
214         $(heimdalsrcdir)/lib/krb5/expand_hostname.o \
215         $(heimdalsrcdir)/lib/krb5/fcache.o \
216         $(heimdalsrcdir)/lib/krb5/free.o \
217         $(heimdalsrcdir)/lib/krb5/free_host_realm.o \
218         $(heimdalsrcdir)/lib/krb5/generate_seq_number.o \
219         $(heimdalsrcdir)/lib/krb5/generate_subkey.o \
220         $(heimdalsrcdir)/lib/krb5/get_cred.o \
221         $(heimdalsrcdir)/lib/krb5/get_default_principal.o \
222         $(heimdalsrcdir)/lib/krb5/get_default_realm.o \
223         $(heimdalsrcdir)/lib/krb5/get_for_creds.o \
224         $(heimdalsrcdir)/lib/krb5/get_host_realm.o \
225         $(heimdalsrcdir)/lib/krb5/get_in_tkt.o \
226         $(heimdalsrcdir)/lib/krb5/get_in_tkt_with_keytab.o \
227         $(heimdalsrcdir)/lib/krb5/get_port.o \
228         $(heimdalsrcdir)/lib/krb5/init_creds.o \
229         $(heimdalsrcdir)/lib/krb5/init_creds_pw.o \
230         $(heimdalsrcdir)/lib/krb5/kcm.o \
231         $(heimdalsrcdir)/lib/krb5/keyblock.o \
232         $(heimdalsrcdir)/lib/krb5/keytab.o \
233         $(heimdalsrcdir)/lib/krb5/keytab_any.o \
234         $(heimdalsrcdir)/lib/krb5/keytab_file.o \
235         $(heimdalsrcdir)/lib/krb5/keytab_memory.o \
236         $(heimdalsrcdir)/lib/krb5/keytab_keyfile.o \
237         $(heimdalsrcdir)/lib/krb5/keytab_krb4.o \
238         $(heimdalsrcdir)/lib/krb5/krbhst.o \
239         $(heimdalsrcdir)/lib/krb5/log.o \
240         $(heimdalsrcdir)/lib/krb5/mcache.o \
241         $(heimdalsrcdir)/lib/krb5/misc.o \
242         $(heimdalsrcdir)/lib/krb5/mk_error.o \
243         $(heimdalsrcdir)/lib/krb5/mk_priv.o \
244         $(heimdalsrcdir)/lib/krb5/mk_rep.o \
245         $(heimdalsrcdir)/lib/krb5/mk_req.o \
246         $(heimdalsrcdir)/lib/krb5/mk_req_ext.o \
247         $(heimdalsrcdir)/lib/krb5/mit_glue.o \
248         $(heimdalsrcdir)/lib/krb5/n-fold.o \
249         $(heimdalsrcdir)/lib/krb5/padata.o \
250         $(heimdalsrcdir)/lib/krb5/pkinit.o \
251         $(heimdalsrcdir)/lib/krb5/plugin.o \
252         $(heimdalsrcdir)/lib/krb5/principal.o \
253         $(heimdalsrcdir)/lib/krb5/pac.o \
254         $(heimdalsrcdir)/lib/krb5/prompter_posix.o \
255         $(heimdalsrcdir)/lib/krb5/rd_cred.o \
256         $(heimdalsrcdir)/lib/krb5/rd_error.o \
257         $(heimdalsrcdir)/lib/krb5/rd_priv.o \
258         $(heimdalsrcdir)/lib/krb5/rd_rep.o \
259         $(heimdalsrcdir)/lib/krb5/rd_req.o \
260         $(heimdalsrcdir)/lib/krb5/replay.o \
261         $(heimdalsrcdir)/lib/krb5/send_to_kdc.o \
262         $(heimdalsrcdir)/lib/krb5/set_default_realm.o \
263         $(heimdalsrcdir)/lib/krb5/store.o \
264         $(heimdalsrcdir)/lib/krb5/store_emem.o \
265         $(heimdalsrcdir)/lib/krb5/store_fd.o \
266         $(heimdalsrcdir)/lib/krb5/store_mem.o \
267         $(heimdalsrcdir)/lib/krb5/ticket.o \
268         $(heimdalsrcdir)/lib/krb5/time.o \
269         $(heimdalsrcdir)/lib/krb5/transited.o \
270         $(heimdalsrcdir)/lib/krb5/v4_glue.o \
271         $(heimdalsrcdir)/lib/krb5/version.o \
272         $(heimdalsrcdir)/lib/krb5/warn.o \
273         $(heimdalsrcdir)/lib/krb5/krb5_err.o \
274         $(heimdalsrcdir)/lib/krb5/heim_err.o \
275         $(heimdalsrcdir)/lib/krb5/k524_err.o \
276         $(heimdalsrcdir)/lib/krb5/krb_err.o
277
278 #######################
279 # Start SUBSYSTEM HEIMDAL_HEIM_ASN1
280 [SUBSYSTEM::HEIMDAL_HEIM_ASN1]
281 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1
282 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_COM_ERR
283 # End SUBSYSTEM HEIMDAL_KRB5
284 #######################
285
286 HEIMDAL_HEIM_ASN1_OBJ_FILES = \
287         $(heimdalsrcdir)/lib/asn1/der_get.o \
288         $(heimdalsrcdir)/lib/asn1/der_put.o \
289         $(heimdalsrcdir)/lib/asn1/der_free.o \
290         $(heimdalsrcdir)/lib/asn1/der_format.o \
291         $(heimdalsrcdir)/lib/asn1/der_length.o \
292         $(heimdalsrcdir)/lib/asn1/der_copy.o \
293         $(heimdalsrcdir)/lib/asn1/der_cmp.o \
294         $(heimdalsrcdir)/lib/asn1/extra.o \
295         $(heimdalsrcdir)/lib/asn1/timegm.o \
296         $(heimdalsrcdir)/lib/asn1/asn1_err.o
297
298 #######################
299 # Start SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
300 [SUBSYSTEM::HEIMDAL_HCRYPTO_IMATH]
301 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto/imath 
302 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN 
303 # End SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
304 #######################
305
306 HEIMDAL_HCRYPTO_IMATH_OBJ_FILES = \
307         $(heimdalsrcdir)/lib/hcrypto/imath/imath.o \
308         $(heimdalsrcdir)/lib/hcrypto/imath/iprime.o
309
310 [SUBSYSTEM::HEIMDAL_HCRYPTO]
311 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto -I$(heimdalsrcdir)/lib
312 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO_IMATH HEIMDAL_RFC2459_ASN1
313 # End SUBSYSTEM HEIMDAL_HCRYPTO
314 #######################
315
316 HEIMDAL_HCRYPTO_OBJ_FILES = \
317         $(heimdalsrcdir)/lib/hcrypto/aes.o \
318         $(heimdalsrcdir)/lib/hcrypto/bn.o \
319         $(heimdalsrcdir)/lib/hcrypto/dh.o \
320         $(heimdalsrcdir)/lib/hcrypto/dh-imath.o \
321         $(heimdalsrcdir)/lib/hcrypto/des.o \
322         $(heimdalsrcdir)/lib/hcrypto/dsa.o \
323         $(heimdalsrcdir)/lib/hcrypto/engine.o \
324         $(heimdalsrcdir)/lib/hcrypto/md2.o \
325         $(heimdalsrcdir)/lib/hcrypto/md4.o \
326         $(heimdalsrcdir)/lib/hcrypto/md5.o \
327         $(heimdalsrcdir)/lib/hcrypto/rsa.o \
328         $(heimdalsrcdir)/lib/hcrypto/rsa-imath.o \
329         $(heimdalsrcdir)/lib/hcrypto/rc2.o \
330         $(heimdalsrcdir)/lib/hcrypto/rc4.o \
331         $(heimdalsrcdir)/lib/hcrypto/rijndael-alg-fst.o \
332         $(heimdalsrcdir)/lib/hcrypto/rnd_keys.o \
333         $(heimdalsrcdir)/lib/hcrypto/sha.o \
334         $(heimdalsrcdir)/lib/hcrypto/sha256.o \
335         $(heimdalsrcdir)/lib/hcrypto/ui.o \
336         $(heimdalsrcdir)/lib/hcrypto/evp.o \
337         $(heimdalsrcdir)/lib/hcrypto/pkcs5.o \
338         $(heimdalsrcdir)/lib/hcrypto/pkcs12.o \
339         $(heimdalsrcdir)/lib/hcrypto/rand.o \
340         $(heimdalsrcdir)/lib/hcrypto/rand-egd.o \
341         $(heimdalsrcdir)/lib/hcrypto/rand-unix.o \
342         $(heimdalsrcdir)/lib/hcrypto/rand-fortuna.o \
343         $(heimdalsrcdir)/lib/hcrypto/rand-timer.o \
344         $(heimdalsrcdir)/lib/hcrypto/hmac.o \
345         $(heimdalsrcdir)/lib/hcrypto/camellia.o \
346         $(heimdalsrcdir)/lib/hcrypto/camellia-ntt.o
347
348 #######################
349 # Start SUBSYSTEM HEIMDAL_HX509
350 [SUBSYSTEM::HEIMDAL_HX509]
351 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hx509 
352 PRIVATE_DEPENDENCIES = \
353         HEIMDAL_ROKEN HEIMDAL_COM_ERR \
354         HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO \
355         HEIMDAL_CMS_ASN1 HEIMDAL_RFC2459_ASN1 \
356         HEIMDAL_OCSP_ASN1 HEIMDAL_PKCS8_ASN1 \
357         HEIMDAL_PKCS9_ASN1 HEIMDAL_PKCS12_ASN1 \
358         HEIMDAL_PKINIT_ASN1 HEIMDAL_PKCS10_ASN1 \
359         HEIMDAL_WIND
360 # End SUBSYSTEM HEIMDAL_HX509
361 #######################
362
363 HEIMDAL_HX509_OBJ_FILES = \
364         $(heimdalsrcdir)/lib/hx509/ca.o \
365         $(heimdalsrcdir)/lib/hx509/cert.o \
366         $(heimdalsrcdir)/lib/hx509/cms.o \
367         $(heimdalsrcdir)/lib/hx509/collector.o \
368         $(heimdalsrcdir)/lib/hx509/crypto.o \
369         $(heimdalsrcdir)/lib/hx509/error.o \
370         $(heimdalsrcdir)/lib/hx509/env.o \
371         $(heimdalsrcdir)/lib/hx509/file.o \
372         $(heimdalsrcdir)/lib/hx509/keyset.o \
373         $(heimdalsrcdir)/lib/hx509/ks_dir.o \
374         $(heimdalsrcdir)/lib/hx509/ks_file.o \
375         $(heimdalsrcdir)/lib/hx509/ks_keychain.o \
376         $(heimdalsrcdir)/lib/hx509/ks_mem.o \
377         $(heimdalsrcdir)/lib/hx509/ks_null.o \
378         $(heimdalsrcdir)/lib/hx509/ks_p11.o \
379         $(heimdalsrcdir)/lib/hx509/ks_p12.o \
380         $(heimdalsrcdir)/lib/hx509/lock.o \
381         $(heimdalsrcdir)/lib/hx509/name.o \
382         $(heimdalsrcdir)/lib/hx509/peer.o \
383         $(heimdalsrcdir)/lib/hx509/print.o \
384         $(heimdalsrcdir)/lib/hx509/req.o \
385         $(heimdalsrcdir)/lib/hx509/revoke.o \
386         $(heimdalsrcdir)/lib/hx509/sel.o \
387         $(heimdalsrcdir)/lib/hx509/sel-lex.o \
388         $(heimdalsrcdir)/lib/hx509/sel-gram.o \
389         $(heimdalsrcdir)/lib/hx509/hx509_err.o
390
391
392 #######################
393 # Start SUBSYSTEM HEIMDAL_WIND
394 [SUBSYSTEM::HEIMDAL_WIND]
395 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/wind 
396 PRIVATE_DEPENDENCIES = \
397         HEIMDAL_ROKEN HEIMDAL_COM_ERR
398
399 HEIMDAL_WIND_OBJ_FILES = \
400         $(heimdalsrcdir)/lib/wind/wind_err.o \
401         $(heimdalsrcdir)/lib/wind/stringprep.o \
402         $(heimdalsrcdir)/lib/wind/errorlist.o \
403         $(heimdalsrcdir)/lib/wind/errorlist_table.o \
404         $(heimdalsrcdir)/lib/wind/normalize.o \
405         $(heimdalsrcdir)/lib/wind/normalize_table.o \
406         $(heimdalsrcdir)/lib/wind/combining.o \
407         $(heimdalsrcdir)/lib/wind/combining_table.o \
408         $(heimdalsrcdir)/lib/wind/utf8.o \
409         $(heimdalsrcdir)/lib/wind/bidi.o \
410         $(heimdalsrcdir)/lib/wind/bidi_table.o \
411         $(heimdalsrcdir)/lib/wind/ldap.o \
412         $(heimdalsrcdir)/lib/wind/map.o \
413         $(heimdalsrcdir)/lib/wind/map_table.o
414 # End SUBSYSTEM HEIMDAL_WIND
415 #######################
416
417 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME]
418
419 HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.o
420 $(HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
421
422 [SUBSYSTEM::HEIMDAL_ROKEN_CLOSEFROM] 
423
424 HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES = $(heimdalsrcdir)/lib/roken/closefrom.o
425 $(HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
426
427 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME_H] 
428
429 HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.ho
430 $(HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
431
432 #######################
433 # Start SUBSYSTEM HEIMDAL_ROKEN
434 [SUBSYSTEM::HEIMDAL_ROKEN]
435 CFLAGS =  -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
436 PUBLIC_DEPENDENCIES = \
437                         HEIMDAL_ROKEN_GETPROGNAME \
438                         HEIMDAL_ROKEN_CLOSEFROM \
439                         RESOLV \
440                         LIBREPLACE_NETWORK
441 # End SUBSYSTEM HEIMDAL_ROKEN
442 #######################
443
444 HEIMDAL_ROKEN_OBJ_FILES = \
445         $(heimdalsrcdir)/lib/roken/base64.o \
446         $(heimdalsrcdir)/lib/roken/hex.o \
447         $(heimdalsrcdir)/lib/roken/bswap.o \
448         $(heimdalsrcdir)/lib/roken/dumpdata.o \
449         $(heimdalsrcdir)/lib/roken/emalloc.o \
450         $(heimdalsrcdir)/lib/roken/ecalloc.o \
451         $(heimdalsrcdir)/lib/roken/get_window_size.o \
452         $(heimdalsrcdir)/lib/roken/h_errno.o \
453         $(heimdalsrcdir)/lib/roken/issuid.o \
454         $(heimdalsrcdir)/lib/roken/net_read.o \
455         $(heimdalsrcdir)/lib/roken/net_write.o \
456         $(heimdalsrcdir)/lib/roken/socket.o \
457         $(heimdalsrcdir)/lib/roken/parse_time.o \
458         $(heimdalsrcdir)/lib/roken/parse_units.o \
459         $(heimdalsrcdir)/lib/roken/resolve.o \
460         $(heimdalsrcdir)/lib/roken/roken_gethostby.o \
461         $(heimdalsrcdir)/lib/roken/signal.o \
462         $(heimdalsrcdir)/lib/roken/vis.o \
463         $(heimdalsrcdir)/lib/roken/strlwr.o \
464         $(heimdalsrcdir)/lib/roken/strsep_copy.o \
465         $(heimdalsrcdir)/lib/roken/strsep.o \
466         $(heimdalsrcdir)/lib/roken/strupr.o \
467         $(heimdalsrcdir)/lib/roken/strpool.o \
468         $(heimdalsrcdir)/lib/roken/estrdup.o \
469         $(heimdalsrcdir)/lib/roken/erealloc.o \
470         $(heimdalsrcdir)/lib/roken/simple_exec.o \
471         $(heimdalsrcdir)/lib/roken/strcollect.o \
472         $(heimdalsrcdir)/lib/roken/rtbl.o \
473         $(heimdalsrcdir)/lib/roken/cloexec.o \
474         $(heimdalsrcdir)/lib/roken/xfree.o \
475         $(heimdalbuildsrcdir)/replace.o
476
477 #######################
478 # Start SUBSYSTEM HEIMDAL_GLUE
479 [SUBSYSTEM::HEIMDAL_GLUE]
480 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/krb5 -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/com_err 
481 PUBLIC_DEPENDENCIES = LIBNETIF LIBSAMBA-HOSTCONFIG
482 # End SUBSYSTEM HEIMDAL_GLUE
483 #######################
484
485 HEIMDAL_GLUE_OBJ_FILES = $(heimdalbuildsrcdir)/glue.o
486
487 #######################
488 # Start SUBSYSTEM HEIMDAL_COM_ERR
489 [SUBSYSTEM::HEIMDAL_COM_ERR]
490 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err
491 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN
492 # End SUBSYSTEM HEIMDAL_COM_ERR
493 #######################
494
495 HEIMDAL_COM_ERR_OBJ_FILES = \
496         $(heimdalsrcdir)/lib/com_err/com_err.o \
497         $(heimdalsrcdir)/lib/com_err/error.o
498
499 #######################
500 # Start SUBSYSTEM HEIMDAL_ASN1_COMPILE_LEX
501 [SUBSYSTEM::HEIMDAL_ASN1_COMPILE_LEX]
502 # End SUBSYSTEM HEIMDAL_ASN1_COMPILE_LEX
503 #######################
504
505 HEIMDAL_ASN1_COMPILE_LEX_OBJ_FILES = $(heimdalsrcdir)/lib/asn1/lex.ho 
506 $(HEIMDAL_ASN1_COMPILE_LEX_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
507
508 #######################
509 # Start BINARY asn1_compile
510 [BINARY::asn1_compile]
511 USE_HOSTCC = YES
512 PRIVATE_DEPENDENCIES = HEIMDAL_ASN1_COMPILE_LEX HEIMDAL_ROKEN_GETPROGNAME_H LIBREPLACE_NETWORK
513
514 ASN1C = $(builddir)/bin/asn1_compile
515
516 asn1_compile_OBJ_FILES = \
517         $(heimdalsrcdir)/lib/asn1/main.ho \
518         $(heimdalsrcdir)/lib/asn1/gen.ho \
519         $(heimdalsrcdir)/lib/asn1/gen_copy.ho \
520         $(heimdalsrcdir)/lib/asn1/gen_decode.ho \
521         $(heimdalsrcdir)/lib/asn1/gen_encode.ho \
522         $(heimdalsrcdir)/lib/asn1/gen_free.ho \
523         $(heimdalsrcdir)/lib/asn1/gen_glue.ho \
524         $(heimdalsrcdir)/lib/asn1/gen_length.ho \
525         $(heimdalsrcdir)/lib/asn1/gen_seq.ho \
526         $(heimdalsrcdir)/lib/asn1/hash.ho \
527         $(heimdalsrcdir)/lib/asn1/parse.ho \
528         $(heimdalsrcdir)/lib/roken/emalloc.ho \
529         $(heimdalsrcdir)/lib/roken/getarg.ho \
530         $(heimdalsrcdir)/lib/roken/setprogname.ho \
531         $(heimdalsrcdir)/lib/roken/strupr.ho \
532         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
533         $(heimdalsrcdir)/lib/roken/estrdup.ho \
534         $(heimdalsrcdir)/lib/roken/ecalloc.ho \
535         $(heimdalsrcdir)/lib/asn1/symbol.ho \
536         $(heimdalsrcdir)/lib/vers/print_version.ho \
537         $(socketwrappersrcdir)/socket_wrapper.ho \
538         $(heimdalbuildsrcdir)/replace.ho
539
540 $(asn1_compile_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken -I$(heimdalsrcdir)/lib/asn1
541
542 # End BINARY asn1_compile
543 #######################
544
545 #######################
546 # Start SUBSYSTEM HEIMDAL_COM_ERR_COMPILE_LEX
547 [SUBSYSTEM::HEIMDAL_COM_ERR_COMPILE_LEX]
548 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
549 # End SUBSYSTEM HEIMDAL_COM_ERR_COMPILE_LEX
550 #######################
551
552 HEIMDAL_COM_ERR_COMPILE_LEX_OBJ_FILES = $(heimdalsrcdir)/lib/com_err/lex.ho 
553
554 #######################
555 # Start BINARY compile_et
556 [BINARY::compile_et]
557 USE_HOSTCC = YES
558 PRIVATE_DEPENDENCIES = HEIMDAL_COM_ERR_COMPILE_LEX HEIMDAL_ROKEN_GETPROGNAME_H LIBREPLACE_NETWORK
559 # End BINARY compile_et
560 #######################
561
562 ET_COMPILER = $(builddir)/bin/compile_et
563
564 compile_et_OBJ_FILES = $(heimdalsrcdir)/lib/vers/print_version.ho \
565         $(heimdalsrcdir)/lib/com_err/parse.ho \
566         $(heimdalsrcdir)/lib/com_err/compile_et.ho \
567         $(heimdalsrcdir)/lib/roken/getarg.ho \
568         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
569         $(heimdalsrcdir)/lib/roken/strupr.ho \
570         $(heimdalsrcdir)/lib/roken/setprogname.ho \
571         $(socketwrappersrcdir)/socket_wrapper.ho \
572         $(heimdalbuildsrcdir)/replace.ho
573
574 $(compile_et_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
575
576 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hdb/hdb.asn1 hdb_asn1 \$\(heimdalsrcdir\)/lib/hdb |
577 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/spnego/spnego.asn1 spnego_asn1 \$\(heimdalsrcdir\)/lib/gssapi --sequence=MechTypeList |
578 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/mech/gssapi.asn1 gssapi_asn1 \$\(heimdalsrcdir\)/lib/gssapi|
579 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/k5.asn1 krb5_asn1 \$\(heimdalsrcdir\)/lib/asn1 --encode-rfc1510-bit-string --sequence=KRB5SignedPathPrincipals --sequence=AuthorizationData --sequence=METHOD-DATA|
580 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/digest.asn1 digest_asn1 \$\(heimdalsrcdir\)/lib/asn1|
581 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs8.asn1 pkcs8_asn1 \$\(heimdalsrcdir\)/lib/asn1|
582 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs9.asn1 pkcs9_asn1 \$\(heimdalsrcdir\)/lib/asn1|
583 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs12.asn1 pkcs12_asn1 \$\(heimdalsrcdir\)/lib/asn1|
584 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/rfc2459.asn1 rfc2459_asn1 \$\(heimdalsrcdir\)/lib/asn1 --preserve-binary=TBSCertificate --preserve-binary=TBSCRLCertList --preserve-binary=Name --sequence=GeneralNames --sequence=Extensions --sequence=CRLDistributionPoints|
585 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkinit.asn1 pkinit_asn1 \$\(heimdalsrcdir\)/lib/asn1|
586 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/CMS.asn1 cms_asn1 \$\(heimdalsrcdir\)/lib/asn1|
587 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/ocsp.asn1 ocsp_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=OCSPTBSRequest --preserve-binary=OCSPResponseData|
588 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/kx509.asn1 kx509_asn1 \$\(heimdalsrcdir\)/lib/asn1|
589 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/pkcs10.asn1 pkcs10_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=CertificationRequestInfo|
590
591 #
592 # Ensure to update ./static_deps.mk when you add a new entry here!
593 #
594 mkinclude perl_path_wrapper.sh et_deps.pl lib/asn1/asn1_err.et \$\(heimdalsrcdir\)/lib/asn1|
595 mkinclude perl_path_wrapper.sh et_deps.pl lib/hdb/hdb_err.et \$\(heimdalsrcdir\)/lib/hdb|
596 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/heim_err.et \$\(heimdalsrcdir\)/lib/krb5|
597 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/k524_err.et \$\(heimdalsrcdir\)/lib/krb5|
598 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb_err.et \$\(heimdalsrcdir\)/lib/krb5|
599 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb5_err.et \$\(heimdalsrcdir\)/lib/krb5|
600 mkinclude perl_path_wrapper.sh et_deps.pl lib/gssapi/krb5/gkrb5_err.et \$\(heimdalsrcdir\)/lib/gssapi|
601 mkinclude perl_path_wrapper.sh et_deps.pl lib/hx509/hx509_err.et \$\(heimdalsrcdir\)/lib/hx509|
602 mkinclude perl_path_wrapper.sh et_deps.pl lib/wind/wind_err.et \$\(heimdalsrcdir\)/lib/wind|
603
604 clean:: 
605         @-rm -f bin/compile_et bin/asn1_compile
606
607 #######################
608 # Start SUBSYSTEM HEIMDAL
609 [SUBSYSTEM::HEIMDAL]
610 CFLAGS = -I$(heimdalbuildsrcdir)
611 PUBLIC_DEPENDENCIES = \
612                 HEIMDAL_GSSAPI HEIMDAL_KRB5
613 # End SUBSYSTEM HEIMDAL
614 #######################
615
616 HEIMDAL_OBJ_FILES = $(heimdalsrcdir)/lib/vers/print_version.o
617
618 #######################
619 # Start BINARY compile_et
620 [BINARY::samba4kinit]
621 PRIVATE_DEPENDENCIES = HEIMDAL_KRB5 HEIMDAL_NTLM
622 # End BINARY compile_et
623 #######################
624
625 samba4kinit_OBJ_FILES = $(heimdalsrcdir)/kuser/kinit.o \
626         $(heimdalsrcdir)/lib/vers/print_version.o \
627         $(heimdalsrcdir)/lib/roken/setprogname.o \
628         $(heimdalsrcdir)/lib/roken/getarg.o 
629
630 $(samba4kinit_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
631
632 dist:: $(heimdalsrcdir)/lib/asn1/lex.c $(heimdalsrcdir)/lib/com_err/lex.c \
633         $(heimdalsrcdir)/lib/asn1/parse.c $(heimdalsrcdir)/lib/com_err/parse.c \
634         $(heimdalsrcdir)/lib/hx509/sel-lex.c $(heimdalsrcdir)/lib/hx509/sel-gram.c