Merge branch 'master' of ssh://git.samba.org/data/git/samba into selftest
[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 # Create a prototype header
6 # Arguments: header file, arguments, c files, deps
7 define heimdal_proto_header_template
8
9 proto:: $(1)
10
11 clean:: ;
12         rm -f $(1)
13
14 $(4):: $(1)
15
16 $(1): $(3) ;
17         @echo "Creating $$@"
18         @$$(PERL) $$(heimdalsrcdir)/cf/make-proto.pl $(2) $(1) $(3)
19
20 endef
21
22 #######################
23 # Start SUBSYSTEM HEIMDAL_KDC
24 [SUBSYSTEM::HEIMDAL_KDC]
25 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/kdc
26 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_KRB5 HEIMDAL_HDB HEIMDAL_HEIM_ASN1 \
27                 HEIMDAL_DIGEST_ASN1 HEIMDAL_KX509_ASN1 HEIMDAL_NTLM HEIMDAL_HCRYPTO
28 # End SUBSYSTEM HEIMDAL_KDC
29 #######################
30
31
32 HEIMDAL_KDC_OBJ_FILES = \
33         $(heimdalsrcdir)/kdc/default_config.o \
34         $(heimdalsrcdir)/kdc/kerberos5.o \
35         $(heimdalsrcdir)/kdc/krb5tgs.o \
36         $(heimdalsrcdir)/kdc/pkinit.o \
37         $(heimdalsrcdir)/kdc/log.o \
38         $(heimdalsrcdir)/kdc/misc.o \
39         $(heimdalsrcdir)/kdc/524.o \
40         $(heimdalsrcdir)/kdc/kerberos4.o \
41         $(heimdalsrcdir)/kdc/kaserver.o \
42         $(heimdalsrcdir)/kdc/digest.o \
43         $(heimdalsrcdir)/kdc/process.o \
44         $(heimdalsrcdir)/kdc/windc.o \
45         $(heimdalsrcdir)/kdc/kx509.o
46
47 $(eval $(call heimdal_proto_header_template, \
48   $(heimdalsrcdir)/kdc/kdc-protos.h, \
49   -q -P comment -o, \
50   $(HEIMDAL_KDC_OBJ_FILES:.o=.c), \
51   $(HEIMDAL_KDC_OBJ_FILES) $(HEIMDAL_KDC_OBJ_FILES:.o=.d) \
52 ))
53
54 $(eval $(call heimdal_proto_header_template, \
55   $(heimdalsrcdir)/kdc/kdc-private.h, \
56   -q -P comment -p, \
57   $(HEIMDAL_KDC_OBJ_FILES:.o=.c), \
58   $(HEIMDAL_KDC_OBJ_FILES) $(HEIMDAL_KDC_OBJ_FILES:.o=.d) \
59 ))
60
61 [SUBSYSTEM::HEIMDAL_NTLM]
62 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/ntlm
63 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5
64
65 HEIMDAL_NTLM_OBJ_FILES = \
66         $(heimdalsrcdir)/lib/ntlm/ntlm.o
67
68 $(eval $(call heimdal_proto_header_template, \
69   $(heimdalsrcdir)/lib/ntlm/heimntlm-protos.h, \
70   -q -P comment -o, \
71   $(HEIMDAL_NTLM_OBJ_FILES:.o=.c), \
72   $(HEIMDAL_NTLM_OBJ_FILES) $(HEIMDAL_NTLM_OBJ_FILES:.o=.d) \
73 ))
74
75 [SUBSYSTEM::HEIMDAL_HDB_KEYS]
76 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hdb
77 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_KRB5 \
78                                            HEIMDAL_HDB_ASN1
79
80 HEIMDAL_HDB_KEYS_OBJ_FILES = $(heimdalsrcdir)/lib/hdb/keys.o
81
82 #######################
83 # Start SUBSYSTEM HEIMDAL_HDB
84 [SUBSYSTEM::HEIMDAL_HDB]
85 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hdb
86 PRIVATE_DEPENDENCIES = HDB_LDB HEIMDAL_KRB5 HEIMDAL_HDB_KEYS HEIMDAL_ROKEN HEIMDAL_HCRYPTO HEIMDAL_COM_ERR HEIMDAL_HDB_ASN1
87 # End SUBSYSTEM HEIMDAL_HDB
88 #######################
89
90 HEIMDAL_HDB_OBJ_FILES = \
91         $(heimdalsrcdir)/lib/hdb/db.o \
92         $(heimdalsrcdir)/lib/hdb/dbinfo.o \
93         $(heimdalsrcdir)/lib/hdb/hdb.o \
94         $(heimdalsrcdir)/lib/hdb/ext.o \
95         $(heimdalsrcdir)/lib/hdb/keytab.o \
96         $(heimdalsrcdir)/lib/hdb/mkey.o \
97         $(heimdalsrcdir)/lib/hdb/ndbm.o \
98         $(heimdalsrcdir)/lib/hdb/hdb_err.o
99
100 $(eval $(call heimdal_proto_header_template, \
101   $(heimdalsrcdir)/lib/hdb/hdb-protos.h, \
102   -q -P comment -o, \
103   $(HEIMDAL_HDB_OBJ_FILES:.o=.c), \
104   $(HEIMDAL_HDB_OBJ_FILES) $(HEIMDAL_HDB_OBJ_FILES:.o=.d) \
105 ))
106
107 $(eval $(call heimdal_proto_header_template, \
108   $(heimdalsrcdir)/lib/hdb/hdb-private.h, \
109   -q -P comment -p, \
110   $(HEIMDAL_HDB_OBJ_FILES:.o=.c), \
111   $(HEIMDAL_HDB_OBJ_FILES) $(HEIMDAL_HDB_OBJ_FILES:.o=.d) \
112 ))
113
114 #######################
115 # Start SUBSYSTEM HEIMDAL_GSSAPI
116 [SUBSYSTEM::HEIMDAL_GSSAPI]
117 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
118 PRIVATE_DEPENDENCIES = HEIMDAL_HCRYPTO HEIMDAL_HEIM_ASN1 HEIMDAL_SPNEGO_ASN1 HEIMDAL_ROKEN HEIMDAL_KRB5
119 # End SUBSYSTEM HEIMDAL_GSSAPI
120 #######################
121
122 HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES = \
123         $(heimdalsrcdir)/lib/gssapi/spnego/init_sec_context.o \
124         $(heimdalsrcdir)/lib/gssapi/spnego/external.o \
125         $(heimdalsrcdir)/lib/gssapi/spnego/compat.o \
126         $(heimdalsrcdir)/lib/gssapi/spnego/context_stubs.o \
127         $(heimdalsrcdir)/lib/gssapi/spnego/cred_stubs.o \
128         $(heimdalsrcdir)/lib/gssapi/spnego/accept_sec_context.o \
129
130 $(eval $(call heimdal_proto_header_template, \
131   $(heimdalsrcdir)/lib/gssapi/spnego/spnego-private.h, \
132   -q -P comment -p, \
133   $(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES:.o=.c), \
134   $(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES) $(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES:.o=.d) \
135 ))
136
137 HEIMDAL_GSSAPI_KRB5_OBJ_FILES = \
138         $(heimdalsrcdir)/lib/gssapi/krb5/copy_ccache.o \
139         $(heimdalsrcdir)/lib/gssapi/krb5/delete_sec_context.o \
140         $(heimdalsrcdir)/lib/gssapi/krb5/init_sec_context.o \
141         $(heimdalsrcdir)/lib/gssapi/krb5/context_time.o \
142         $(heimdalsrcdir)/lib/gssapi/krb5/init.o \
143         $(heimdalsrcdir)/lib/gssapi/krb5/address_to_krb5addr.o \
144         $(heimdalsrcdir)/lib/gssapi/krb5/get_mic.o \
145         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_context.o \
146         $(heimdalsrcdir)/lib/gssapi/krb5/add_cred.o \
147         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred.o \
148         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred_by_oid.o \
149         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_cred_by_mech.o \
150         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_mechs_for_name.o \
151         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_names_for_mech.o \
152         $(heimdalsrcdir)/lib/gssapi/krb5/indicate_mechs.o \
153         $(heimdalsrcdir)/lib/gssapi/krb5/inquire_sec_context_by_oid.o \
154         $(heimdalsrcdir)/lib/gssapi/krb5/export_sec_context.o \
155         $(heimdalsrcdir)/lib/gssapi/krb5/import_sec_context.o \
156         $(heimdalsrcdir)/lib/gssapi/krb5/duplicate_name.o \
157         $(heimdalsrcdir)/lib/gssapi/krb5/import_name.o \
158         $(heimdalsrcdir)/lib/gssapi/krb5/compare_name.o \
159         $(heimdalsrcdir)/lib/gssapi/krb5/export_name.o \
160         $(heimdalsrcdir)/lib/gssapi/krb5/canonicalize_name.o \
161         $(heimdalsrcdir)/lib/gssapi/krb5/unwrap.o \
162         $(heimdalsrcdir)/lib/gssapi/krb5/wrap.o \
163         $(heimdalsrcdir)/lib/gssapi/krb5/release_name.o \
164         $(heimdalsrcdir)/lib/gssapi/krb5/cfx.o \
165         $(heimdalsrcdir)/lib/gssapi/krb5/8003.o \
166         $(heimdalsrcdir)/lib/gssapi/krb5/arcfour.o \
167         $(heimdalsrcdir)/lib/gssapi/krb5/encapsulate.o \
168         $(heimdalsrcdir)/lib/gssapi/krb5/display_name.o \
169         $(heimdalsrcdir)/lib/gssapi/krb5/sequence.o \
170         $(heimdalsrcdir)/lib/gssapi/krb5/display_status.o \
171         $(heimdalsrcdir)/lib/gssapi/krb5/release_buffer.o \
172         $(heimdalsrcdir)/lib/gssapi/krb5/external.o \
173         $(heimdalsrcdir)/lib/gssapi/krb5/compat.o \
174         $(heimdalsrcdir)/lib/gssapi/krb5/acquire_cred.o \
175         $(heimdalsrcdir)/lib/gssapi/krb5/release_cred.o \
176         $(heimdalsrcdir)/lib/gssapi/krb5/set_cred_option.o \
177         $(heimdalsrcdir)/lib/gssapi/krb5/decapsulate.o \
178         $(heimdalsrcdir)/lib/gssapi/krb5/verify_mic.o \
179         $(heimdalsrcdir)/lib/gssapi/krb5/accept_sec_context.o \
180         $(heimdalsrcdir)/lib/gssapi/krb5/set_sec_context_option.o \
181         $(heimdalsrcdir)/lib/gssapi/krb5/process_context_token.o \
182         $(heimdalsrcdir)/lib/gssapi/krb5/prf.o
183
184 $(eval $(call heimdal_proto_header_template, \
185   $(heimdalsrcdir)/lib/gssapi/krb5/gsskrb5-private.h, \
186   -q -P comment -p, \
187   $(HEIMDAL_GSSAPI_KRB5_OBJ_FILES:.o=.c), \
188   $(HEIMDAL_GSSAPI_KRB5_OBJ_FILES) $(HEIMDAL_GSSAPI_KRB5_OBJ_FILES:.o=.d) \
189 ))
190
191 HEIMDAL_GSSAPI_OBJ_FILES = \
192         $(HEIMDAL_GSSAPI_SPNEGO_OBJ_FILES) \
193         $(HEIMDAL_GSSAPI_KRB5_OBJ_FILES) \
194         $(heimdalsrcdir)/lib/gssapi/mech/context.o \
195         $(heimdalsrcdir)/lib/gssapi/mech/gss_krb5.o \
196         $(heimdalsrcdir)/lib/gssapi/mech/gss_mech_switch.o \
197         $(heimdalsrcdir)/lib/gssapi/mech/gss_process_context_token.o \
198         $(heimdalsrcdir)/lib/gssapi/mech/gss_buffer_set.o \
199         $(heimdalsrcdir)/lib/gssapi/mech/gss_add_cred.o \
200         $(heimdalsrcdir)/lib/gssapi/mech/gss_add_oid_set_member.o \
201         $(heimdalsrcdir)/lib/gssapi/mech/gss_compare_name.o \
202         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_oid_set.o \
203         $(heimdalsrcdir)/lib/gssapi/mech/gss_create_empty_oid_set.o \
204         $(heimdalsrcdir)/lib/gssapi/mech/gss_decapsulate_token.o \
205         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred_by_oid.o \
206         $(heimdalsrcdir)/lib/gssapi/mech/gss_canonicalize_name.o \
207         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_sec_context_by_oid.o \
208         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_names_for_mech.o \
209         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_mechs_for_name.o \
210         $(heimdalsrcdir)/lib/gssapi/mech/gss_wrap_size_limit.o \
211         $(heimdalsrcdir)/lib/gssapi/mech/gss_names.o \
212         $(heimdalsrcdir)/lib/gssapi/mech/gss_verify.o \
213         $(heimdalsrcdir)/lib/gssapi/mech/gss_display_name.o \
214         $(heimdalsrcdir)/lib/gssapi/mech/gss_duplicate_oid.o \
215         $(heimdalsrcdir)/lib/gssapi/mech/gss_display_status.o \
216         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_buffer.o \
217         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_oid.o \
218         $(heimdalsrcdir)/lib/gssapi/mech/gss_test_oid_set_member.o \
219         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_cred.o \
220         $(heimdalsrcdir)/lib/gssapi/mech/gss_set_sec_context_option.o \
221         $(heimdalsrcdir)/lib/gssapi/mech/gss_export_name.o \
222         $(heimdalsrcdir)/lib/gssapi/mech/gss_seal.o \
223         $(heimdalsrcdir)/lib/gssapi/mech/gss_acquire_cred.o \
224         $(heimdalsrcdir)/lib/gssapi/mech/gss_unseal.o \
225         $(heimdalsrcdir)/lib/gssapi/mech/gss_verify_mic.o \
226         $(heimdalsrcdir)/lib/gssapi/mech/gss_accept_sec_context.o \
227         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred_by_mech.o \
228         $(heimdalsrcdir)/lib/gssapi/mech/gss_indicate_mechs.o \
229         $(heimdalsrcdir)/lib/gssapi/mech/gss_delete_sec_context.o \
230         $(heimdalsrcdir)/lib/gssapi/mech/gss_sign.o \
231         $(heimdalsrcdir)/lib/gssapi/mech/gss_utils.o \
232         $(heimdalsrcdir)/lib/gssapi/mech/gss_init_sec_context.o \
233         $(heimdalsrcdir)/lib/gssapi/mech/gss_oid_equal.o \
234         $(heimdalsrcdir)/lib/gssapi/mech/gss_oid_to_str.o \
235         $(heimdalsrcdir)/lib/gssapi/mech/gss_context_time.o \
236         $(heimdalsrcdir)/lib/gssapi/mech/gss_encapsulate_token.o \
237         $(heimdalsrcdir)/lib/gssapi/mech/gss_get_mic.o \
238         $(heimdalsrcdir)/lib/gssapi/mech/gss_import_sec_context.o \
239         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_cred.o \
240         $(heimdalsrcdir)/lib/gssapi/mech/gss_wrap.o \
241         $(heimdalsrcdir)/lib/gssapi/mech/gss_import_name.o \
242         $(heimdalsrcdir)/lib/gssapi/mech/gss_duplicate_name.o \
243         $(heimdalsrcdir)/lib/gssapi/mech/gss_unwrap.o \
244         $(heimdalsrcdir)/lib/gssapi/mech/gss_export_sec_context.o \
245         $(heimdalsrcdir)/lib/gssapi/mech/gss_inquire_context.o \
246         $(heimdalsrcdir)/lib/gssapi/mech/gss_release_name.o \
247         $(heimdalsrcdir)/lib/gssapi/mech/gss_set_cred_option.o \
248         $(heimdalsrcdir)/lib/gssapi/mech/gss_pseudo_random.o \
249         $(heimdalsrcdir)/lib/gssapi/asn1_GSSAPIContextToken.o \
250         $(heimdalbuildsrcdir)/gssapi-glue.o
251
252 #######################
253 # Start SUBSYSTEM HEIMDAL_KRB5
254 [SUBSYSTEM::HEIMDAL_KRB5]
255 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/krb5 -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/com_err 
256 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_PKINIT_ASN1 HEIMDAL_WIND \
257                 HEIMDAL_KRB5_ASN1 HEIMDAL_HX509 HEIMDAL_HCRYPTO \
258                 LIBNETIF LIBSAMBA-HOSTCONFIG
259 PUBLIC_DEPENDENCIES = HEIMDAL_COM_ERR
260 # End SUBSYSTEM HEIMDAL_KRB5
261 #######################
262
263 HEIMDAL_KRB5_OBJ_FILES = \
264         $(heimdalsrcdir)/lib/krb5/acache.o \
265         $(heimdalsrcdir)/lib/krb5/add_et_list.o \
266         $(heimdalsrcdir)/lib/krb5/addr_families.o \
267         $(heimdalsrcdir)/lib/krb5/appdefault.o \
268         $(heimdalsrcdir)/lib/krb5/asn1_glue.o \
269         $(heimdalsrcdir)/lib/krb5/auth_context.o \
270         $(heimdalsrcdir)/lib/krb5/build_ap_req.o \
271         $(heimdalsrcdir)/lib/krb5/build_auth.o \
272         $(heimdalsrcdir)/lib/krb5/cache.o \
273         $(heimdalsrcdir)/lib/krb5/changepw.o \
274         $(heimdalsrcdir)/lib/krb5/codec.o \
275         $(heimdalsrcdir)/lib/krb5/config_file.o \
276         $(heimdalsrcdir)/lib/krb5/config_file_netinfo.o \
277         $(heimdalsrcdir)/lib/krb5/constants.o \
278         $(heimdalsrcdir)/lib/krb5/context.o \
279         $(heimdalsrcdir)/lib/krb5/convert_creds.o \
280         $(heimdalsrcdir)/lib/krb5/copy_host_realm.o \
281         $(heimdalsrcdir)/lib/krb5/crc.o \
282         $(heimdalsrcdir)/lib/krb5/creds.o \
283         $(heimdalsrcdir)/lib/krb5/crypto.o \
284         $(heimdalsrcdir)/lib/krb5/data.o \
285         $(heimdalsrcdir)/lib/krb5/eai_to_heim_errno.o \
286         $(heimdalsrcdir)/lib/krb5/error_string.o \
287         $(heimdalsrcdir)/lib/krb5/expand_hostname.o \
288         $(heimdalsrcdir)/lib/krb5/fcache.o \
289         $(heimdalsrcdir)/lib/krb5/free.o \
290         $(heimdalsrcdir)/lib/krb5/free_host_realm.o \
291         $(heimdalsrcdir)/lib/krb5/generate_seq_number.o \
292         $(heimdalsrcdir)/lib/krb5/generate_subkey.o \
293         $(heimdalsrcdir)/lib/krb5/get_cred.o \
294         $(heimdalsrcdir)/lib/krb5/get_default_principal.o \
295         $(heimdalsrcdir)/lib/krb5/get_default_realm.o \
296         $(heimdalsrcdir)/lib/krb5/get_for_creds.o \
297         $(heimdalsrcdir)/lib/krb5/get_host_realm.o \
298         $(heimdalsrcdir)/lib/krb5/get_in_tkt.o \
299         $(heimdalsrcdir)/lib/krb5/get_in_tkt_with_keytab.o \
300         $(heimdalsrcdir)/lib/krb5/get_port.o \
301         $(heimdalsrcdir)/lib/krb5/init_creds.o \
302         $(heimdalsrcdir)/lib/krb5/init_creds_pw.o \
303         $(heimdalsrcdir)/lib/krb5/kcm.o \
304         $(heimdalsrcdir)/lib/krb5/keyblock.o \
305         $(heimdalsrcdir)/lib/krb5/keytab.o \
306         $(heimdalsrcdir)/lib/krb5/keytab_any.o \
307         $(heimdalsrcdir)/lib/krb5/keytab_file.o \
308         $(heimdalsrcdir)/lib/krb5/keytab_memory.o \
309         $(heimdalsrcdir)/lib/krb5/keytab_keyfile.o \
310         $(heimdalsrcdir)/lib/krb5/krbhst.o \
311         $(heimdalsrcdir)/lib/krb5/log.o \
312         $(heimdalsrcdir)/lib/krb5/mcache.o \
313         $(heimdalsrcdir)/lib/krb5/misc.o \
314         $(heimdalsrcdir)/lib/krb5/mk_error.o \
315         $(heimdalsrcdir)/lib/krb5/mk_priv.o \
316         $(heimdalsrcdir)/lib/krb5/mk_rep.o \
317         $(heimdalsrcdir)/lib/krb5/mk_req.o \
318         $(heimdalsrcdir)/lib/krb5/mk_req_ext.o \
319         $(heimdalsrcdir)/lib/krb5/mit_glue.o \
320         $(heimdalsrcdir)/lib/krb5/n-fold.o \
321         $(heimdalsrcdir)/lib/krb5/padata.o \
322         $(heimdalsrcdir)/lib/krb5/pkinit.o \
323         $(heimdalsrcdir)/lib/krb5/plugin.o \
324         $(heimdalsrcdir)/lib/krb5/principal.o \
325         $(heimdalsrcdir)/lib/krb5/prog_setup.o \
326         $(heimdalsrcdir)/lib/krb5/pac.o \
327         $(heimdalsrcdir)/lib/krb5/prompter_posix.o \
328         $(heimdalsrcdir)/lib/krb5/rd_cred.o \
329         $(heimdalsrcdir)/lib/krb5/rd_error.o \
330         $(heimdalsrcdir)/lib/krb5/rd_priv.o \
331         $(heimdalsrcdir)/lib/krb5/rd_rep.o \
332         $(heimdalsrcdir)/lib/krb5/rd_req.o \
333         $(heimdalsrcdir)/lib/krb5/replay.o \
334         $(heimdalsrcdir)/lib/krb5/send_to_kdc.o \
335         $(heimdalsrcdir)/lib/krb5/set_default_realm.o \
336         $(heimdalsrcdir)/lib/krb5/store.o \
337         $(heimdalsrcdir)/lib/krb5/store_emem.o \
338         $(heimdalsrcdir)/lib/krb5/store_fd.o \
339         $(heimdalsrcdir)/lib/krb5/store_mem.o \
340         $(heimdalsrcdir)/lib/krb5/ticket.o \
341         $(heimdalsrcdir)/lib/krb5/time.o \
342         $(heimdalsrcdir)/lib/krb5/transited.o \
343         $(heimdalsrcdir)/lib/krb5/v4_glue.o \
344         $(heimdalsrcdir)/lib/krb5/version.o \
345         $(heimdalsrcdir)/lib/krb5/warn.o \
346         $(heimdalsrcdir)/lib/krb5/krb5_err.o \
347         $(heimdalsrcdir)/lib/krb5/heim_err.o \
348         $(heimdalsrcdir)/lib/krb5/k524_err.o \
349         $(heimdalsrcdir)/lib/krb5/krb_err.o \
350         $(heimdalsrcdir)/lib/hcrypto/evp-aes-cts.o \
351         $(heimdalbuildsrcdir)/krb5-glue.o
352
353 $(eval $(call heimdal_proto_header_template, \
354   $(heimdalsrcdir)/lib/krb5/krb5-protos.h, \
355   -E KRB5_LIB -q -P comment -o, \
356   $(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
357   $(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
358 ))
359
360 $(eval $(call heimdal_proto_header_template, \
361   $(heimdalsrcdir)/lib/krb5/krb5-private.h, \
362   -q -P comment -p, \
363   $(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
364   $(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
365 ))
366
367 #######################
368 # Start SUBSYSTEM HEIMDAL_HEIM_ASN1
369 [SUBSYSTEM::HEIMDAL_HEIM_ASN1]
370 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1
371 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_COM_ERR
372 # End SUBSYSTEM HEIMDAL_KRB5
373 #######################
374
375 HEIMDAL_HEIM_ASN1_DER_OBJ_FILES = \
376         $(heimdalsrcdir)/lib/asn1/der_get.o \
377         $(heimdalsrcdir)/lib/asn1/der_put.o \
378         $(heimdalsrcdir)/lib/asn1/der_free.o \
379         $(heimdalsrcdir)/lib/asn1/der_format.o \
380         $(heimdalsrcdir)/lib/asn1/der_length.o \
381         $(heimdalsrcdir)/lib/asn1/der_copy.o \
382         $(heimdalsrcdir)/lib/asn1/der_cmp.o \
383
384 HEIMDAL_HEIM_ASN1_OBJ_FILES = \
385         $(HEIMDAL_HEIM_ASN1_DER_OBJ_FILES) \
386         $(heimdalsrcdir)/lib/asn1/extra.o \
387         $(heimdalsrcdir)/lib/asn1/timegm.o \
388         $(heimdalsrcdir)/lib/asn1/asn1_err.o
389
390 #######################
391 # Start SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
392 [SUBSYSTEM::HEIMDAL_HCRYPTO_IMATH]
393 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto/imath 
394 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN 
395 # End SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
396 #######################
397
398 HEIMDAL_HCRYPTO_IMATH_OBJ_FILES = \
399         $(heimdalsrcdir)/lib/hcrypto/imath/imath.o \
400         $(heimdalsrcdir)/lib/hcrypto/imath/iprime.o
401
402 [SUBSYSTEM::HEIMDAL_HCRYPTO]
403 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto -I$(heimdalsrcdir)/lib
404 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO_IMATH HEIMDAL_RFC2459_ASN1
405 # End SUBSYSTEM HEIMDAL_HCRYPTO
406 #######################
407
408 HEIMDAL_HCRYPTO_OBJ_FILES = \
409         $(heimdalsrcdir)/lib/hcrypto/aes.o \
410         $(heimdalsrcdir)/lib/hcrypto/bn.o \
411         $(heimdalsrcdir)/lib/hcrypto/dh.o \
412         $(heimdalsrcdir)/lib/hcrypto/dh-imath.o \
413         $(heimdalsrcdir)/lib/hcrypto/des.o \
414         $(heimdalsrcdir)/lib/hcrypto/dsa.o \
415         $(heimdalsrcdir)/lib/hcrypto/engine.o \
416         $(heimdalsrcdir)/lib/hcrypto/md2.o \
417         $(heimdalsrcdir)/lib/hcrypto/md4.o \
418         $(heimdalsrcdir)/lib/hcrypto/md5.o \
419         $(heimdalsrcdir)/lib/hcrypto/rsa.o \
420         $(heimdalsrcdir)/lib/hcrypto/rsa-imath.o \
421         $(heimdalsrcdir)/lib/hcrypto/rc2.o \
422         $(heimdalsrcdir)/lib/hcrypto/rc4.o \
423         $(heimdalsrcdir)/lib/hcrypto/rijndael-alg-fst.o \
424         $(heimdalsrcdir)/lib/hcrypto/rnd_keys.o \
425         $(heimdalsrcdir)/lib/hcrypto/sha.o \
426         $(heimdalsrcdir)/lib/hcrypto/sha256.o \
427         $(heimdalsrcdir)/lib/hcrypto/ui.o \
428         $(heimdalsrcdir)/lib/hcrypto/evp.o \
429         $(heimdalsrcdir)/lib/hcrypto/evp-hcrypto.o \
430         $(heimdalsrcdir)/lib/hcrypto/pkcs5.o \
431         $(heimdalsrcdir)/lib/hcrypto/pkcs12.o \
432         $(heimdalsrcdir)/lib/hcrypto/rand.o \
433         $(heimdalsrcdir)/lib/hcrypto/rand-egd.o \
434         $(heimdalsrcdir)/lib/hcrypto/rand-unix.o \
435         $(heimdalsrcdir)/lib/hcrypto/rand-fortuna.o \
436         $(heimdalsrcdir)/lib/hcrypto/rand-timer.o \
437         $(heimdalsrcdir)/lib/hcrypto/hmac.o \
438         $(heimdalsrcdir)/lib/hcrypto/camellia.o \
439         $(heimdalsrcdir)/lib/hcrypto/camellia-ntt.o
440
441 #######################
442 # Start SUBSYSTEM HEIMDAL_HX509
443 [SUBSYSTEM::HEIMDAL_HX509]
444 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hx509 
445 PRIVATE_DEPENDENCIES = \
446         HEIMDAL_ROKEN HEIMDAL_COM_ERR \
447         HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO \
448         HEIMDAL_CMS_ASN1 HEIMDAL_RFC2459_ASN1 \
449         HEIMDAL_OCSP_ASN1 HEIMDAL_PKCS8_ASN1 \
450         HEIMDAL_PKCS9_ASN1 HEIMDAL_PKCS12_ASN1 \
451         HEIMDAL_PKINIT_ASN1 HEIMDAL_PKCS10_ASN1 \
452         HEIMDAL_WIND
453 # End SUBSYSTEM HEIMDAL_HX509
454 #######################
455
456 HEIMDAL_HX509_OBJH_FILES = \
457         $(heimdalsrcdir)/lib/hx509/ca.o \
458         $(heimdalsrcdir)/lib/hx509/cert.o \
459         $(heimdalsrcdir)/lib/hx509/cms.o \
460         $(heimdalsrcdir)/lib/hx509/collector.o \
461         $(heimdalsrcdir)/lib/hx509/crypto.o \
462         $(heimdalsrcdir)/lib/hx509/error.o \
463         $(heimdalsrcdir)/lib/hx509/env.o \
464         $(heimdalsrcdir)/lib/hx509/file.o \
465         $(heimdalsrcdir)/lib/hx509/keyset.o \
466         $(heimdalsrcdir)/lib/hx509/ks_dir.o \
467         $(heimdalsrcdir)/lib/hx509/ks_file.o \
468         $(heimdalsrcdir)/lib/hx509/ks_keychain.o \
469         $(heimdalsrcdir)/lib/hx509/ks_mem.o \
470         $(heimdalsrcdir)/lib/hx509/ks_null.o \
471         $(heimdalsrcdir)/lib/hx509/ks_p11.o \
472         $(heimdalsrcdir)/lib/hx509/ks_p12.o \
473         $(heimdalsrcdir)/lib/hx509/lock.o \
474         $(heimdalsrcdir)/lib/hx509/name.o \
475         $(heimdalsrcdir)/lib/hx509/peer.o \
476         $(heimdalsrcdir)/lib/hx509/print.o \
477         $(heimdalsrcdir)/lib/hx509/req.o \
478         $(heimdalsrcdir)/lib/hx509/revoke.o \
479         $(heimdalsrcdir)/lib/hx509/sel.o \
480         $(heimdalsrcdir)/lib/hx509/hx509_err.o
481
482 HEIMDAL_HX509_OBJG_FILES = \
483         $(heimdalsrcdir)/lib/hx509/sel-lex.o \
484         $(heimdalsrcdir)/lib/hx509/sel-gram.o
485
486 $(heimdalsrcdir)/lib/hx509/sel-lex.c:: $(heimdalsrcdir)/lib/hx509/sel-gram.c
487 dist:: $(heimdalsrcdir)/lib/hx509/sel-lex.c
488
489 HEIMDAL_HX509_OBJ_FILES = $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJG_FILES)
490
491 $(eval $(call heimdal_proto_header_template, \
492   $(heimdalsrcdir)/lib/hx509/hx509-protos.h, \
493   -R '^(_|^C)' -E HX509_LIB -q -P comment -o, \
494   $(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
495   $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
496 ))
497
498 $(eval $(call heimdal_proto_header_template, \
499   $(heimdalsrcdir)/lib/hx509/hx509-private.h, \
500   -q -P comment -p, \
501   $(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
502   $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
503 ))
504
505 #######################
506 # Start SUBSYSTEM HEIMDAL_WIND
507 [SUBSYSTEM::HEIMDAL_WIND]
508 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/wind 
509 PRIVATE_DEPENDENCIES = \
510         HEIMDAL_ROKEN HEIMDAL_COM_ERR
511
512 HEIMDAL_WIND_OBJ_FILES = \
513         $(heimdalsrcdir)/lib/wind/wind_err.o \
514         $(heimdalsrcdir)/lib/wind/stringprep.o \
515         $(heimdalsrcdir)/lib/wind/errorlist.o \
516         $(heimdalsrcdir)/lib/wind/errorlist_table.o \
517         $(heimdalsrcdir)/lib/wind/normalize.o \
518         $(heimdalsrcdir)/lib/wind/normalize_table.o \
519         $(heimdalsrcdir)/lib/wind/combining.o \
520         $(heimdalsrcdir)/lib/wind/combining_table.o \
521         $(heimdalsrcdir)/lib/wind/utf8.o \
522         $(heimdalsrcdir)/lib/wind/bidi.o \
523         $(heimdalsrcdir)/lib/wind/bidi_table.o \
524         $(heimdalsrcdir)/lib/wind/ldap.o \
525         $(heimdalsrcdir)/lib/wind/map.o \
526         $(heimdalsrcdir)/lib/wind/map_table.o
527 # End SUBSYSTEM HEIMDAL_WIND
528 #######################
529
530 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/map_table.h
531
532 $(heimdalsrcdir)/lib/wind/map_table.h $(heimdalsrcdir)/lib/wind/map_table.c: $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/gen-map.py $(heimdalsrcdir)/lib/wind/stringprep.py
533         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-map.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
534
535 clean::
536         @rm -f $(heimdalsrcdir)/lib/wind/map_table.h $(heimdalsrcdir)/lib/wind/map_table.c
537
538 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/errorlist_table.h
539
540 $(heimdalsrcdir)/lib/wind/errorlist_table.h $(heimdalsrcdir)/lib/wind/errorlist_table.c: $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/gen-errorlist.py $(heimdalsrcdir)/lib/wind/stringprep.py
541         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-errorlist.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
542
543 clean::
544         @rm -f $(heimdalsrcdir)/lib/wind/errorlist_table.h $(heimdalsrcdir)/lib/wind/errorlist_table.c
545
546 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/normalize_table.h
547
548 $(heimdalsrcdir)/lib/wind/normalize_table.h $(heimdalsrcdir)/lib/wind/normalize_table.c: $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/CompositionExclusions-3.2.0.txt $(heimdalsrcdir)/lib/wind/gen-normalize.py
549         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-normalize.py $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/CompositionExclusions-3.2.0.txt $(heimdalsrcdir)/lib/wind/
550
551 clean::
552         @rm -f $(heimdalsrcdir)/lib/wind/normalize_table.h $(heimdalsrcdir)/lib/wind/normalize_table.c
553
554 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/combining_table.h
555
556 $(heimdalsrcdir)/lib/wind/combining_table.h $(heimdalsrcdir)/lib/wind/combining_table.c: $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/gen-combining.py
557         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-combining.py $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/
558
559 clean::
560         @rm -f $(heimdalsrcdir)/lib/wind/combining_table.h $(heimdalsrcdir)/lib/wind/combining_table.c
561
562 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/bidi_table.h
563
564 $(heimdalsrcdir)/lib/wind/bidi_table.h $(heimdalsrcdir)/lib/wind/bidi_table.c: $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/gen-bidi.py
565         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-bidi.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
566
567 clean::
568         @rm -f $(heimdalsrcdir)/lib/wind/bidi_table.h $(heimdalsrcdir)/lib/wind/bidi_table.c
569
570 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME]
571
572 HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.o
573 $(HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
574
575 [SUBSYSTEM::HEIMDAL_ROKEN_CLOSEFROM] 
576
577 HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES = $(heimdalsrcdir)/lib/roken/closefrom.o
578 $(HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
579
580 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME_H] 
581
582 HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.ho
583 $(HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
584
585 #######################
586 # Start SUBSYSTEM HEIMDAL_ROKEN
587 [SUBSYSTEM::HEIMDAL_ROKEN]
588 CFLAGS =  -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
589 PRIVATE_DEPENDENCIES = \
590                         HEIMDAL_ROKEN_GETPROGNAME \
591                         HEIMDAL_ROKEN_CLOSEFROM \
592                         RESOLV \
593                         LIBREPLACE_NETWORK
594 # End SUBSYSTEM HEIMDAL_ROKEN
595 #######################
596
597 HEIMDAL_ROKEN_OBJ_FILES = \
598         $(heimdalsrcdir)/lib/roken/base64.o \
599         $(heimdalsrcdir)/lib/roken/hex.o \
600         $(heimdalsrcdir)/lib/roken/bswap.o \
601         $(heimdalsrcdir)/lib/roken/dumpdata.o \
602         $(heimdalsrcdir)/lib/roken/emalloc.o \
603         $(heimdalsrcdir)/lib/roken/ecalloc.o \
604         $(heimdalsrcdir)/lib/roken/getarg.o \
605         $(heimdalsrcdir)/lib/roken/get_window_size.o \
606         $(heimdalsrcdir)/lib/roken/h_errno.o \
607         $(heimdalsrcdir)/lib/roken/issuid.o \
608         $(heimdalsrcdir)/lib/roken/net_read.o \
609         $(heimdalsrcdir)/lib/roken/net_write.o \
610         $(heimdalsrcdir)/lib/roken/socket.o \
611         $(heimdalsrcdir)/lib/roken/parse_time.o \
612         $(heimdalsrcdir)/lib/roken/parse_units.o \
613         $(heimdalsrcdir)/lib/roken/resolve.o \
614         $(heimdalsrcdir)/lib/roken/roken_gethostby.o \
615         $(heimdalsrcdir)/lib/roken/signal.o \
616         $(heimdalsrcdir)/lib/roken/vis.o \
617         $(heimdalsrcdir)/lib/roken/setprogname.o \
618         $(heimdalsrcdir)/lib/roken/strlwr.o \
619         $(heimdalsrcdir)/lib/roken/strsep_copy.o \
620         $(heimdalsrcdir)/lib/roken/strsep.o \
621         $(heimdalsrcdir)/lib/roken/strupr.o \
622         $(heimdalsrcdir)/lib/roken/strpool.o \
623         $(heimdalsrcdir)/lib/roken/estrdup.o \
624         $(heimdalsrcdir)/lib/roken/erealloc.o \
625         $(heimdalsrcdir)/lib/roken/simple_exec.o \
626         $(heimdalsrcdir)/lib/roken/strcollect.o \
627         $(heimdalsrcdir)/lib/roken/rtbl.o \
628         $(heimdalsrcdir)/lib/roken/cloexec.o \
629         $(heimdalsrcdir)/lib/roken/xfree.o \
630         $(heimdalbuildsrcdir)/replace.o
631
632 $(HEIMDAL_ROKEN_OBJ_FILES) $(HEIMDAL_ROKEN_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/roken/roken.h
633 $(HEIMDAL_ROKEN_OBJ_FILES:.o=.ho) $(HEIMDAL_ROKEN_OBJ_FILES:.o=.hd):: $(heimdalsrcdir)/lib/roken/roken.h
634
635 $(heimdalsrcdir)/lib/roken/roken.h:
636         @echo 'Creating $(heimdalsrcdir)/lib/roken/roken.h'
637         @echo '#include "heimdal_build/roken.h"' > $(heimdalsrcdir)/lib/roken/roken.h
638
639 clean::
640         @rm -f $(heimdalsrcdir)/lib/roken/roken.h
641
642 #######################
643 # Start SUBSYSTEM HEIMDAL_COM_ERR
644 [SUBSYSTEM::HEIMDAL_COM_ERR]
645 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err
646 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN
647 # End SUBSYSTEM HEIMDAL_COM_ERR
648 #######################
649
650 HEIMDAL_COM_ERR_OBJ_FILES = \
651         $(heimdalsrcdir)/lib/com_err/com_err.o \
652         $(heimdalsrcdir)/lib/com_err/error.o
653
654 #######################
655 # Start BINARY asn1_compile
656 [BINARY::asn1_compile]
657 USE_HOSTCC = YES
658 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN_GETPROGNAME_H LIBREPLACE_NETWORK
659
660 ASN1C = $(builddir)/bin/asn1_compile
661
662 asn1_compile_ASN1_OBJ_FILES = \
663         $(heimdalsrcdir)/lib/asn1/main.ho \
664         $(heimdalsrcdir)/lib/asn1/gen.ho \
665         $(heimdalsrcdir)/lib/asn1/gen_copy.ho \
666         $(heimdalsrcdir)/lib/asn1/gen_decode.ho \
667         $(heimdalsrcdir)/lib/asn1/gen_encode.ho \
668         $(heimdalsrcdir)/lib/asn1/gen_free.ho \
669         $(heimdalsrcdir)/lib/asn1/gen_glue.ho \
670         $(heimdalsrcdir)/lib/asn1/gen_length.ho \
671         $(heimdalsrcdir)/lib/asn1/gen_seq.ho \
672         $(heimdalsrcdir)/lib/asn1/hash.ho \
673         $(heimdalsrcdir)/lib/asn1/symbol.ho \
674         $(heimdalsrcdir)/lib/asn1/parse.ho \
675         $(heimdalsrcdir)/lib/asn1/lex.ho
676
677 $(heimdalsrcdir)/lib/asn1/lex.c:: $(heimdalsrcdir)/lib/asn1/parse.c
678 dist:: $(heimdalsrcdir)/lib/asn1/lex.c
679
680 asn1_compile_OBJ_FILES = \
681         $(asn1_compile_ASN1_OBJ_FILES) \
682         $(heimdalsrcdir)/lib/roken/emalloc.ho \
683         $(heimdalsrcdir)/lib/roken/strupr.ho \
684         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
685         $(heimdalsrcdir)/lib/roken/estrdup.ho \
686         $(heimdalsrcdir)/lib/roken/ecalloc.ho \
687         $(heimdalsrcdir)/lib/vers/print_version.ho \
688         $(socketwrappersrcdir)/socket_wrapper.ho \
689         $(heimdalbuildsrcdir)/replace.ho
690
691 $(asn1_compile_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
692
693 $(eval $(call heimdal_proto_header_template, \
694   $(heimdalsrcdir)/lib/asn1/der-protos.h, \
695   -q -P comment -o, \
696   $(HEIMDAL_HEIM_ASN1_DER_OBJ_FILES:.o=.c), \
697   $(asn1_compile_ASN1_OBJ_FILES) $(asn1_compile_ASN1_OBJ_FILES:.ho=.hd) \
698 ))
699
700 # End BINARY asn1_compile
701 #######################
702
703 #######################
704 # Start BINARY compile_et
705 [BINARY::compile_et]
706 USE_HOSTCC = YES
707 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN_GETPROGNAME_H LIBREPLACE_NETWORK
708 # End BINARY compile_et
709 #######################
710
711 ET_COMPILER = $(builddir)/bin/compile_et
712
713 compile_et_OBJ_FILES = $(heimdalsrcdir)/lib/vers/print_version.ho \
714         $(heimdalsrcdir)/lib/com_err/parse.ho \
715         $(heimdalsrcdir)/lib/com_err/lex.ho \
716         $(heimdalsrcdir)/lib/com_err/compile_et.ho \
717         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
718         $(heimdalsrcdir)/lib/roken/strupr.ho \
719         $(socketwrappersrcdir)/socket_wrapper.ho \
720         $(heimdalbuildsrcdir)/replace.ho
721
722 $(compile_et_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
723
724 $(heimdalsrcdir)/lib/com_err/lex.c:: $(heimdalsrcdir)/lib/com_err/parse.c
725 dist:: $(heimdalsrcdir)/lib/com_err/lex.c
726
727 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hdb/hdb.asn1 hdb_asn1 \$\(heimdalsrcdir\)/lib/hdb |
728 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/spnego/spnego.asn1 spnego_asn1 \$\(heimdalsrcdir\)/lib/gssapi --sequence=MechTypeList |
729 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/mech/gssapi.asn1 gssapi_asn1 \$\(heimdalsrcdir\)/lib/gssapi|
730 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|
731 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/digest.asn1 digest_asn1 \$\(heimdalsrcdir\)/lib/asn1|
732 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs8.asn1 pkcs8_asn1 \$\(heimdalsrcdir\)/lib/asn1|
733 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs9.asn1 pkcs9_asn1 \$\(heimdalsrcdir\)/lib/asn1|
734 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs12.asn1 pkcs12_asn1 \$\(heimdalsrcdir\)/lib/asn1|
735 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|
736 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkinit.asn1 pkinit_asn1 \$\(heimdalsrcdir\)/lib/asn1|
737 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/CMS.asn1 cms_asn1 \$\(heimdalsrcdir\)/lib/asn1|
738 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/ocsp.asn1 ocsp_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=OCSPTBSRequest --preserve-binary=OCSPResponseData|
739 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/kx509.asn1 kx509_asn1 \$\(heimdalsrcdir\)/lib/asn1|
740 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/pkcs10.asn1 pkcs10_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=CertificationRequestInfo|
741
742 mkinclude perl_path_wrapper.sh et_deps.pl lib/asn1/asn1_err.et \$\(heimdalsrcdir\)/lib/asn1|
743 mkinclude perl_path_wrapper.sh et_deps.pl lib/hdb/hdb_err.et \$\(heimdalsrcdir\)/lib/hdb|
744 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/heim_err.et \$\(heimdalsrcdir\)/lib/krb5|
745 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/k524_err.et \$\(heimdalsrcdir\)/lib/krb5|
746 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb_err.et \$\(heimdalsrcdir\)/lib/krb5|
747 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb5_err.et \$\(heimdalsrcdir\)/lib/krb5|
748 mkinclude perl_path_wrapper.sh et_deps.pl lib/gssapi/krb5/gkrb5_err.et \$\(heimdalsrcdir\)/lib/gssapi|
749 mkinclude perl_path_wrapper.sh et_deps.pl lib/hx509/hx509_err.et \$\(heimdalsrcdir\)/lib/hx509|
750 mkinclude perl_path_wrapper.sh et_deps.pl lib/wind/wind_err.et \$\(heimdalsrcdir\)/lib/wind|
751
752 clean:: 
753         @-rm -f bin/compile_et bin/asn1_compile
754
755 #######################
756 # Start BINARY compile_et
757 [BINARY::samba4kinit]
758 PRIVATE_DEPENDENCIES = HEIMDAL_KRB5 HEIMDAL_NTLM
759 # End BINARY compile_et
760 #######################
761
762 samba4kinit_OBJ_FILES = $(heimdalsrcdir)/kuser/kinit.o \
763         $(heimdalsrcdir)/lib/vers/print_version.o 
764
765 $(samba4kinit_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
766
767 #######################
768 # Start BINARY compile_et
769 [BINARY::samba4kpasswd]
770 PRIVATE_DEPENDENCIES = HEIMDAL_KRB5 HEIMDAL_NTLM
771 # End BINARY compile_et
772 #######################
773
774 samba4kpasswd_OBJ_FILES = $(heimdalsrcdir)/kpasswd/kpasswd.o \
775         $(heimdalsrcdir)/lib/vers/print_version.o 
776
777 $(samba4kpasswd_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
778
779 #######################
780 # Start BINARY compile_et
781 [BINARY::rkpty]
782 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN OPENPTY
783 # End BINARY compile_et
784 #######################
785
786 rkpty_OBJ_FILES = $(heimdalsrcdir)/lib/roken/rkpty.o \
787         $(socketwrappersrcdir)/socket_wrapper.o
788
789 $(rkpty_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken -DPACKAGE=\"Samba\"