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