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