heimdal_build: autogenerate the heimdal private/proto headers
[nivanova/samba-autobuild/.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/pac.o \
326         $(heimdalsrcdir)/lib/krb5/prompter_posix.o \
327         $(heimdalsrcdir)/lib/krb5/rd_cred.o \
328         $(heimdalsrcdir)/lib/krb5/rd_error.o \
329         $(heimdalsrcdir)/lib/krb5/rd_priv.o \
330         $(heimdalsrcdir)/lib/krb5/rd_rep.o \
331         $(heimdalsrcdir)/lib/krb5/rd_req.o \
332         $(heimdalsrcdir)/lib/krb5/replay.o \
333         $(heimdalsrcdir)/lib/krb5/send_to_kdc.o \
334         $(heimdalsrcdir)/lib/krb5/set_default_realm.o \
335         $(heimdalsrcdir)/lib/krb5/store.o \
336         $(heimdalsrcdir)/lib/krb5/store_emem.o \
337         $(heimdalsrcdir)/lib/krb5/store_fd.o \
338         $(heimdalsrcdir)/lib/krb5/store_mem.o \
339         $(heimdalsrcdir)/lib/krb5/ticket.o \
340         $(heimdalsrcdir)/lib/krb5/time.o \
341         $(heimdalsrcdir)/lib/krb5/transited.o \
342         $(heimdalsrcdir)/lib/krb5/v4_glue.o \
343         $(heimdalsrcdir)/lib/krb5/version.o \
344         $(heimdalsrcdir)/lib/krb5/warn.o \
345         $(heimdalsrcdir)/lib/krb5/krb5_err.o \
346         $(heimdalsrcdir)/lib/krb5/heim_err.o \
347         $(heimdalsrcdir)/lib/krb5/k524_err.o \
348         $(heimdalsrcdir)/lib/krb5/krb_err.o \
349         $(heimdalbuildsrcdir)/krb5-glue.o
350
351 $(eval $(call heimdal_proto_header_template, \
352   $(heimdalsrcdir)/lib/krb5/krb5-protos.h, \
353   -E KRB5_LIB -q -P comment -o, \
354   $(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
355   $(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
356 ))
357
358 $(eval $(call heimdal_proto_header_template, \
359   $(heimdalsrcdir)/lib/krb5/krb5-private.h, \
360   -q -P comment -p, \
361   $(HEIMDAL_KRB5_OBJ_FILES:.o=.c), \
362   $(HEIMDAL_KRB5_OBJ_FILES) $(HEIMDAL_KRB5_OBJ_FILES:.o=.d) \
363 ))
364
365 #######################
366 # Start SUBSYSTEM HEIMDAL_HEIM_ASN1
367 [SUBSYSTEM::HEIMDAL_HEIM_ASN1]
368 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1
369 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_COM_ERR
370 # End SUBSYSTEM HEIMDAL_KRB5
371 #######################
372
373 HEIMDAL_HEIM_ASN1_DER_OBJ_FILES = \
374         $(heimdalsrcdir)/lib/asn1/der_get.o \
375         $(heimdalsrcdir)/lib/asn1/der_put.o \
376         $(heimdalsrcdir)/lib/asn1/der_free.o \
377         $(heimdalsrcdir)/lib/asn1/der_format.o \
378         $(heimdalsrcdir)/lib/asn1/der_length.o \
379         $(heimdalsrcdir)/lib/asn1/der_copy.o \
380         $(heimdalsrcdir)/lib/asn1/der_cmp.o \
381
382 HEIMDAL_HEIM_ASN1_OBJ_FILES = \
383         $(HEIMDAL_HEIM_ASN1_DER_OBJ_FILES) \
384         $(heimdalsrcdir)/lib/asn1/extra.o \
385         $(heimdalsrcdir)/lib/asn1/timegm.o \
386         $(heimdalsrcdir)/lib/asn1/asn1_err.o
387
388 #######################
389 # Start SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
390 [SUBSYSTEM::HEIMDAL_HCRYPTO_IMATH]
391 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto/imath 
392 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN 
393 # End SUBSYSTEM HEIMDAL_HCRYPTO_IMATH
394 #######################
395
396 HEIMDAL_HCRYPTO_IMATH_OBJ_FILES = \
397         $(heimdalsrcdir)/lib/hcrypto/imath/imath.o \
398         $(heimdalsrcdir)/lib/hcrypto/imath/iprime.o
399
400 [SUBSYSTEM::HEIMDAL_HCRYPTO]
401 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hcrypto -I$(heimdalsrcdir)/lib
402 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO_IMATH HEIMDAL_RFC2459_ASN1
403 # End SUBSYSTEM HEIMDAL_HCRYPTO
404 #######################
405
406 HEIMDAL_HCRYPTO_OBJ_FILES = \
407         $(heimdalsrcdir)/lib/hcrypto/aes.o \
408         $(heimdalsrcdir)/lib/hcrypto/bn.o \
409         $(heimdalsrcdir)/lib/hcrypto/dh.o \
410         $(heimdalsrcdir)/lib/hcrypto/dh-imath.o \
411         $(heimdalsrcdir)/lib/hcrypto/des.o \
412         $(heimdalsrcdir)/lib/hcrypto/dsa.o \
413         $(heimdalsrcdir)/lib/hcrypto/engine.o \
414         $(heimdalsrcdir)/lib/hcrypto/md2.o \
415         $(heimdalsrcdir)/lib/hcrypto/md4.o \
416         $(heimdalsrcdir)/lib/hcrypto/md5.o \
417         $(heimdalsrcdir)/lib/hcrypto/rsa.o \
418         $(heimdalsrcdir)/lib/hcrypto/rsa-imath.o \
419         $(heimdalsrcdir)/lib/hcrypto/rc2.o \
420         $(heimdalsrcdir)/lib/hcrypto/rc4.o \
421         $(heimdalsrcdir)/lib/hcrypto/rijndael-alg-fst.o \
422         $(heimdalsrcdir)/lib/hcrypto/rnd_keys.o \
423         $(heimdalsrcdir)/lib/hcrypto/sha.o \
424         $(heimdalsrcdir)/lib/hcrypto/sha256.o \
425         $(heimdalsrcdir)/lib/hcrypto/ui.o \
426         $(heimdalsrcdir)/lib/hcrypto/evp.o \
427         $(heimdalsrcdir)/lib/hcrypto/pkcs5.o \
428         $(heimdalsrcdir)/lib/hcrypto/pkcs12.o \
429         $(heimdalsrcdir)/lib/hcrypto/rand.o \
430         $(heimdalsrcdir)/lib/hcrypto/rand-egd.o \
431         $(heimdalsrcdir)/lib/hcrypto/rand-unix.o \
432         $(heimdalsrcdir)/lib/hcrypto/rand-fortuna.o \
433         $(heimdalsrcdir)/lib/hcrypto/rand-timer.o \
434         $(heimdalsrcdir)/lib/hcrypto/hmac.o \
435         $(heimdalsrcdir)/lib/hcrypto/camellia.o \
436         $(heimdalsrcdir)/lib/hcrypto/camellia-ntt.o
437
438 #######################
439 # Start SUBSYSTEM HEIMDAL_HX509
440 [SUBSYSTEM::HEIMDAL_HX509]
441 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/hx509 
442 PRIVATE_DEPENDENCIES = \
443         HEIMDAL_ROKEN HEIMDAL_COM_ERR \
444         HEIMDAL_HEIM_ASN1 HEIMDAL_HCRYPTO \
445         HEIMDAL_CMS_ASN1 HEIMDAL_RFC2459_ASN1 \
446         HEIMDAL_OCSP_ASN1 HEIMDAL_PKCS8_ASN1 \
447         HEIMDAL_PKCS9_ASN1 HEIMDAL_PKCS12_ASN1 \
448         HEIMDAL_PKINIT_ASN1 HEIMDAL_PKCS10_ASN1 \
449         HEIMDAL_WIND
450 # End SUBSYSTEM HEIMDAL_HX509
451 #######################
452
453 HEIMDAL_HX509_OBJH_FILES = \
454         $(heimdalsrcdir)/lib/hx509/ca.o \
455         $(heimdalsrcdir)/lib/hx509/cert.o \
456         $(heimdalsrcdir)/lib/hx509/cms.o \
457         $(heimdalsrcdir)/lib/hx509/collector.o \
458         $(heimdalsrcdir)/lib/hx509/crypto.o \
459         $(heimdalsrcdir)/lib/hx509/error.o \
460         $(heimdalsrcdir)/lib/hx509/env.o \
461         $(heimdalsrcdir)/lib/hx509/file.o \
462         $(heimdalsrcdir)/lib/hx509/keyset.o \
463         $(heimdalsrcdir)/lib/hx509/ks_dir.o \
464         $(heimdalsrcdir)/lib/hx509/ks_file.o \
465         $(heimdalsrcdir)/lib/hx509/ks_keychain.o \
466         $(heimdalsrcdir)/lib/hx509/ks_mem.o \
467         $(heimdalsrcdir)/lib/hx509/ks_null.o \
468         $(heimdalsrcdir)/lib/hx509/ks_p11.o \
469         $(heimdalsrcdir)/lib/hx509/ks_p12.o \
470         $(heimdalsrcdir)/lib/hx509/lock.o \
471         $(heimdalsrcdir)/lib/hx509/name.o \
472         $(heimdalsrcdir)/lib/hx509/peer.o \
473         $(heimdalsrcdir)/lib/hx509/print.o \
474         $(heimdalsrcdir)/lib/hx509/req.o \
475         $(heimdalsrcdir)/lib/hx509/revoke.o \
476         $(heimdalsrcdir)/lib/hx509/sel.o \
477         $(heimdalsrcdir)/lib/hx509/hx509_err.o
478
479 HEIMDAL_HX509_OBJG_FILES = \
480         $(heimdalsrcdir)/lib/hx509/sel-lex.o \
481         $(heimdalsrcdir)/lib/hx509/sel-gram.o
482
483 HEIMDAL_HX509_OBJ_FILES = $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJG_FILES)
484
485 $(eval $(call heimdal_proto_header_template, \
486   $(heimdalsrcdir)/lib/hx509/hx509-protos.h, \
487   -R '^(_|^C)' -E HX509_LIB -q -P comment -o, \
488   $(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
489   $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
490 ))
491
492 $(eval $(call heimdal_proto_header_template, \
493   $(heimdalsrcdir)/lib/hx509/hx509-private.h, \
494   -q -P comment -p, \
495   $(HEIMDAL_HX509_OBJH_FILES:.o=.c), \
496   $(HEIMDAL_HX509_OBJH_FILES) $(HEIMDAL_HX509_OBJH_FILES:.o=.d) \
497 ))
498
499 #######################
500 # Start SUBSYSTEM HEIMDAL_WIND
501 [SUBSYSTEM::HEIMDAL_WIND]
502 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/wind 
503 PRIVATE_DEPENDENCIES = \
504         HEIMDAL_ROKEN HEIMDAL_COM_ERR
505
506 HEIMDAL_WIND_OBJ_FILES = \
507         $(heimdalsrcdir)/lib/wind/wind_err.o \
508         $(heimdalsrcdir)/lib/wind/stringprep.o \
509         $(heimdalsrcdir)/lib/wind/errorlist.o \
510         $(heimdalsrcdir)/lib/wind/errorlist_table.o \
511         $(heimdalsrcdir)/lib/wind/normalize.o \
512         $(heimdalsrcdir)/lib/wind/normalize_table.o \
513         $(heimdalsrcdir)/lib/wind/combining.o \
514         $(heimdalsrcdir)/lib/wind/combining_table.o \
515         $(heimdalsrcdir)/lib/wind/utf8.o \
516         $(heimdalsrcdir)/lib/wind/bidi.o \
517         $(heimdalsrcdir)/lib/wind/bidi_table.o \
518         $(heimdalsrcdir)/lib/wind/ldap.o \
519         $(heimdalsrcdir)/lib/wind/map.o \
520         $(heimdalsrcdir)/lib/wind/map_table.o
521 # End SUBSYSTEM HEIMDAL_WIND
522 #######################
523
524 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/map_table.h
525
526 $(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
527         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-map.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
528
529 clean::
530         @rm -f $(heimdalsrcdir)/lib/wind/map_table.h $(heimdalsrcdir)/lib/wind/map_table.c
531
532 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/errorlist_table.h
533
534 $(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
535         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-errorlist.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
536
537 clean::
538         @rm -f $(heimdalsrcdir)/lib/wind/errorlist_table.h $(heimdalsrcdir)/lib/wind/errorlist_table.c
539
540 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/normalize_table.h
541
542 $(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
543         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-normalize.py $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/CompositionExclusions-3.2.0.txt $(heimdalsrcdir)/lib/wind/
544
545 clean::
546         @rm -f $(heimdalsrcdir)/lib/wind/normalize_table.h $(heimdalsrcdir)/lib/wind/normalize_table.c
547
548 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/combining_table.h
549
550 $(heimdalsrcdir)/lib/wind/combining_table.h $(heimdalsrcdir)/lib/wind/combining_table.c: $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/gen-combining.py
551         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-combining.py $(heimdalsrcdir)/lib/wind/UnicodeData.txt $(heimdalsrcdir)/lib/wind/
552
553 clean::
554         @rm -f $(heimdalsrcdir)/lib/wind/combining_table.h $(heimdalsrcdir)/lib/wind/combining_table.c
555
556 $(HEIMDAL_WIND_OBJ_FILES) $(HEIMDAL_WIND_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/wind/bidi_table.h
557
558 $(heimdalsrcdir)/lib/wind/bidi_table.h $(heimdalsrcdir)/lib/wind/bidi_table.c: $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/gen-bidi.py
559         $(PYTHON) $(heimdalsrcdir)/lib/wind/gen-bidi.py $(heimdalsrcdir)/lib/wind/rfc3454.txt $(heimdalsrcdir)/lib/wind/
560
561 clean::
562         @rm -f $(heimdalsrcdir)/lib/wind/bidi_table.h $(heimdalsrcdir)/lib/wind/bidi_table.c
563
564 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME]
565
566 HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.o
567 $(HEIMDAL_ROKEN_GETPROGNAME_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
568
569 [SUBSYSTEM::HEIMDAL_ROKEN_CLOSEFROM] 
570
571 HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES = $(heimdalsrcdir)/lib/roken/closefrom.o
572 $(HEIMDAL_ROKEN_CLOSEFROM_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
573
574 [SUBSYSTEM::HEIMDAL_ROKEN_GETPROGNAME_H] 
575
576 HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES = $(heimdalsrcdir)/lib/roken/getprogname.ho
577 $(HEIMDAL_ROKEN_GETPROGNAME_H_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
578
579 #######################
580 # Start SUBSYSTEM HEIMDAL_ROKEN
581 [SUBSYSTEM::HEIMDAL_ROKEN]
582 CFLAGS =  -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
583 PRIVATE_DEPENDENCIES = \
584                         HEIMDAL_ROKEN_GETPROGNAME \
585                         HEIMDAL_ROKEN_CLOSEFROM \
586                         RESOLV \
587                         LIBREPLACE_NETWORK
588 # End SUBSYSTEM HEIMDAL_ROKEN
589 #######################
590
591 HEIMDAL_ROKEN_OBJ_FILES = \
592         $(heimdalsrcdir)/lib/roken/base64.o \
593         $(heimdalsrcdir)/lib/roken/hex.o \
594         $(heimdalsrcdir)/lib/roken/bswap.o \
595         $(heimdalsrcdir)/lib/roken/dumpdata.o \
596         $(heimdalsrcdir)/lib/roken/emalloc.o \
597         $(heimdalsrcdir)/lib/roken/ecalloc.o \
598         $(heimdalsrcdir)/lib/roken/get_window_size.o \
599         $(heimdalsrcdir)/lib/roken/h_errno.o \
600         $(heimdalsrcdir)/lib/roken/issuid.o \
601         $(heimdalsrcdir)/lib/roken/net_read.o \
602         $(heimdalsrcdir)/lib/roken/net_write.o \
603         $(heimdalsrcdir)/lib/roken/socket.o \
604         $(heimdalsrcdir)/lib/roken/parse_time.o \
605         $(heimdalsrcdir)/lib/roken/parse_units.o \
606         $(heimdalsrcdir)/lib/roken/resolve.o \
607         $(heimdalsrcdir)/lib/roken/roken_gethostby.o \
608         $(heimdalsrcdir)/lib/roken/signal.o \
609         $(heimdalsrcdir)/lib/roken/vis.o \
610         $(heimdalsrcdir)/lib/roken/strlwr.o \
611         $(heimdalsrcdir)/lib/roken/strsep_copy.o \
612         $(heimdalsrcdir)/lib/roken/strsep.o \
613         $(heimdalsrcdir)/lib/roken/strupr.o \
614         $(heimdalsrcdir)/lib/roken/strpool.o \
615         $(heimdalsrcdir)/lib/roken/estrdup.o \
616         $(heimdalsrcdir)/lib/roken/erealloc.o \
617         $(heimdalsrcdir)/lib/roken/simple_exec.o \
618         $(heimdalsrcdir)/lib/roken/strcollect.o \
619         $(heimdalsrcdir)/lib/roken/rtbl.o \
620         $(heimdalsrcdir)/lib/roken/cloexec.o \
621         $(heimdalsrcdir)/lib/roken/xfree.o \
622         $(heimdalbuildsrcdir)/replace.o
623
624 $(HEIMDAL_ROKEN_OBJ_FILES) $(HEIMDAL_ROKEN_OBJ_FILES:.o=.d):: $(heimdalsrcdir)/lib/roken/roken.h
625 $(HEIMDAL_ROKEN_OBJ_FILES:.o=.ho) $(HEIMDAL_ROKEN_OBJ_FILES:.o=.hd):: $(heimdalsrcdir)/lib/roken/roken.h
626
627 $(heimdalsrcdir)/lib/roken/roken.h:
628         @echo 'Creating $(heimdalsrcdir)/lib/roken/roken.h'
629         @echo '#include "heimdal_build/roken.h"' > $(heimdalsrcdir)/lib/roken/roken.h
630
631 clean::
632         @rm -f $(heimdalsrcdir)/lib/roken/roken.h
633
634 #######################
635 # Start SUBSYSTEM HEIMDAL_COM_ERR
636 [SUBSYSTEM::HEIMDAL_COM_ERR]
637 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err
638 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN
639 # End SUBSYSTEM HEIMDAL_COM_ERR
640 #######################
641
642 HEIMDAL_COM_ERR_OBJ_FILES = \
643         $(heimdalsrcdir)/lib/com_err/com_err.o \
644         $(heimdalsrcdir)/lib/com_err/error.o
645
646 #######################
647 # Start BINARY asn1_compile
648 [BINARY::asn1_compile]
649 USE_HOSTCC = YES
650 PRIVATE_DEPENDENCIES = HEIMDAL_ROKEN_GETPROGNAME_H LIBREPLACE_NETWORK
651
652 ASN1C = $(builddir)/bin/asn1_compile
653
654 asn1_compile_ASN1_OBJ_FILES = \
655         $(heimdalsrcdir)/lib/asn1/main.ho \
656         $(heimdalsrcdir)/lib/asn1/gen.ho \
657         $(heimdalsrcdir)/lib/asn1/gen_copy.ho \
658         $(heimdalsrcdir)/lib/asn1/gen_decode.ho \
659         $(heimdalsrcdir)/lib/asn1/gen_encode.ho \
660         $(heimdalsrcdir)/lib/asn1/gen_free.ho \
661         $(heimdalsrcdir)/lib/asn1/gen_glue.ho \
662         $(heimdalsrcdir)/lib/asn1/gen_length.ho \
663         $(heimdalsrcdir)/lib/asn1/gen_seq.ho \
664         $(heimdalsrcdir)/lib/asn1/hash.ho \
665         $(heimdalsrcdir)/lib/asn1/symbol.ho \
666         $(heimdalsrcdir)/lib/asn1/parse.ho \
667         $(heimdalsrcdir)/lib/asn1/lex.ho
668
669 asn1_compile_OBJ_FILES = \
670         $(asn1_compile_ASN1_OBJ_FILES) \
671         $(heimdalsrcdir)/lib/roken/emalloc.ho \
672         $(heimdalsrcdir)/lib/roken/getarg.ho \
673         $(heimdalsrcdir)/lib/roken/setprogname.ho \
674         $(heimdalsrcdir)/lib/roken/strupr.ho \
675         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
676         $(heimdalsrcdir)/lib/roken/estrdup.ho \
677         $(heimdalsrcdir)/lib/roken/ecalloc.ho \
678         $(heimdalsrcdir)/lib/vers/print_version.ho \
679         $(socketwrappersrcdir)/socket_wrapper.ho \
680         $(heimdalbuildsrcdir)/replace.ho
681
682 $(asn1_compile_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/asn1 -I$(heimdalsrcdir)/lib/roken -I$(socketwrappersrcdir)
683
684 $(eval $(call heimdal_proto_header_template, \
685   $(heimdalsrcdir)/lib/asn1/der-protos.h, \
686   -q -P comment -o, \
687   $(HEIMDAL_HEIM_ASN1_DER_OBJ_FILES:.o=.c), \
688   $(asn1_compile_ASN1_OBJ_FILES) $(asn1_compile_ASN1_OBJ_FILES:.ho=.hd) \
689 ))
690
691 # End BINARY asn1_compile
692 #######################
693
694 #######################
695 # Start SUBSYSTEM HEIMDAL_COM_ERR_COMPILE_LEX
696 [SUBSYSTEM::HEIMDAL_COM_ERR_COMPILE_LEX]
697 CFLAGS = -I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/com_err -I$(heimdalsrcdir)/lib/roken  -I$(socketwrappersrcdir)
698 # End SUBSYSTEM HEIMDAL_COM_ERR_COMPILE_LEX
699 #######################
700
701 HEIMDAL_COM_ERR_COMPILE_LEX_OBJ_FILES = $(heimdalsrcdir)/lib/com_err/lex.ho 
702
703 #######################
704 # Start BINARY compile_et
705 [BINARY::compile_et]
706 USE_HOSTCC = YES
707 PRIVATE_DEPENDENCIES = HEIMDAL_COM_ERR_COMPILE_LEX 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/compile_et.ho \
716         $(heimdalsrcdir)/lib/roken/getarg.ho \
717         $(heimdalsrcdir)/lib/roken/get_window_size.ho \
718         $(heimdalsrcdir)/lib/roken/strupr.ho \
719         $(heimdalsrcdir)/lib/roken/setprogname.ho \
720         $(socketwrappersrcdir)/socket_wrapper.ho \
721         $(heimdalbuildsrcdir)/replace.ho
722
723 $(compile_et_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
724
725 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hdb/hdb.asn1 hdb_asn1 \$\(heimdalsrcdir\)/lib/hdb |
726 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/spnego/spnego.asn1 spnego_asn1 \$\(heimdalsrcdir\)/lib/gssapi --sequence=MechTypeList |
727 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/gssapi/mech/gssapi.asn1 gssapi_asn1 \$\(heimdalsrcdir\)/lib/gssapi|
728 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|
729 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/digest.asn1 digest_asn1 \$\(heimdalsrcdir\)/lib/asn1|
730 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs8.asn1 pkcs8_asn1 \$\(heimdalsrcdir\)/lib/asn1|
731 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs9.asn1 pkcs9_asn1 \$\(heimdalsrcdir\)/lib/asn1|
732 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkcs12.asn1 pkcs12_asn1 \$\(heimdalsrcdir\)/lib/asn1|
733 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|
734 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/pkinit.asn1 pkinit_asn1 \$\(heimdalsrcdir\)/lib/asn1|
735 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/CMS.asn1 cms_asn1 \$\(heimdalsrcdir\)/lib/asn1|
736 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/ocsp.asn1 ocsp_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=OCSPTBSRequest --preserve-binary=OCSPResponseData|
737 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/asn1/kx509.asn1 kx509_asn1 \$\(heimdalsrcdir\)/lib/asn1|
738 mkinclude perl_path_wrapper.sh asn1_deps.pl lib/hx509/pkcs10.asn1 pkcs10_asn1 \$\(heimdalsrcdir\)/lib/hx509 --preserve-binary=CertificationRequestInfo|
739
740 mkinclude perl_path_wrapper.sh et_deps.pl lib/asn1/asn1_err.et \$\(heimdalsrcdir\)/lib/asn1|
741 mkinclude perl_path_wrapper.sh et_deps.pl lib/hdb/hdb_err.et \$\(heimdalsrcdir\)/lib/hdb|
742 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/heim_err.et \$\(heimdalsrcdir\)/lib/krb5|
743 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/k524_err.et \$\(heimdalsrcdir\)/lib/krb5|
744 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb_err.et \$\(heimdalsrcdir\)/lib/krb5|
745 mkinclude perl_path_wrapper.sh et_deps.pl lib/krb5/krb5_err.et \$\(heimdalsrcdir\)/lib/krb5|
746 mkinclude perl_path_wrapper.sh et_deps.pl lib/gssapi/krb5/gkrb5_err.et \$\(heimdalsrcdir\)/lib/gssapi|
747 mkinclude perl_path_wrapper.sh et_deps.pl lib/hx509/hx509_err.et \$\(heimdalsrcdir\)/lib/hx509|
748 mkinclude perl_path_wrapper.sh et_deps.pl lib/wind/wind_err.et \$\(heimdalsrcdir\)/lib/wind|
749
750 clean:: 
751         @-rm -f bin/compile_et bin/asn1_compile
752
753 #######################
754 # Start BINARY compile_et
755 [BINARY::samba4kinit]
756 PRIVATE_DEPENDENCIES = HEIMDAL_KRB5 HEIMDAL_NTLM
757 # End BINARY compile_et
758 #######################
759
760 samba4kinit_OBJ_FILES = $(heimdalsrcdir)/kuser/kinit.o \
761         $(heimdalsrcdir)/lib/vers/print_version.o \
762         $(heimdalsrcdir)/lib/roken/setprogname.o \
763         $(heimdalsrcdir)/lib/roken/getarg.o 
764
765 $(samba4kinit_OBJ_FILES): CFLAGS+=-I$(heimdalbuildsrcdir) -I$(heimdalsrcdir)/lib/roken
766
767 dist:: $(heimdalsrcdir)/lib/asn1/lex.c $(heimdalsrcdir)/lib/com_err/lex.c \
768         $(heimdalsrcdir)/lib/asn1/parse.c $(heimdalsrcdir)/lib/com_err/parse.c \
769         $(heimdalsrcdir)/lib/hx509/sel-lex.c $(heimdalsrcdir)/lib/hx509/sel-gram.c