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