NTMakefile revision 1.1 1 1.1 elric ########################################################################
2 1.1 elric #
3 1.1 elric # Copyright (c) 2009, Secure Endpoints Inc.
4 1.1 elric # All rights reserved.
5 1.1 elric #
6 1.1 elric # Redistribution and use in source and binary forms, with or without
7 1.1 elric # modification, are permitted provided that the following conditions
8 1.1 elric # are met:
9 1.1 elric #
10 1.1 elric # - Redistributions of source code must retain the above copyright
11 1.1 elric # notice, this list of conditions and the following disclaimer.
12 1.1 elric #
13 1.1 elric # - Redistributions in binary form must reproduce the above copyright
14 1.1 elric # notice, this list of conditions and the following disclaimer in
15 1.1 elric # the documentation and/or other materials provided with the
16 1.1 elric # distribution.
17 1.1 elric #
18 1.1 elric # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 1.1 elric # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 1.1 elric # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 1.1 elric # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 1.1 elric # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 1.1 elric # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 1.1 elric # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 1.1 elric # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 1.1 elric # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 1.1 elric # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 1.1 elric # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 elric # POSSIBILITY OF SUCH DAMAGE.
30 1.1 elric #
31 1.1 elric
32 1.1 elric RELDIR=lib\gssapi
33 1.1 elric
34 1.1 elric !include ../../windows/NTMakefile.w32
35 1.1 elric
36 1.1 elric krb5src = \
37 1.1 elric krb5/8003.c \
38 1.1 elric krb5/accept_sec_context.c \
39 1.1 elric krb5/acquire_cred.c \
40 1.1 elric krb5/add_cred.c \
41 1.1 elric krb5/address_to_krb5addr.c \
42 1.1 elric krb5/aeap.c \
43 1.1 elric krb5/arcfour.c \
44 1.1 elric krb5/canonicalize_name.c \
45 1.1 elric krb5/creds.c \
46 1.1 elric krb5/ccache_name.c \
47 1.1 elric krb5/cfx.c \
48 1.1 elric krb5/cfx.h \
49 1.1 elric krb5/compare_name.c \
50 1.1 elric krb5/compat.c \
51 1.1 elric krb5/context_time.c \
52 1.1 elric krb5/copy_ccache.c \
53 1.1 elric krb5/decapsulate.c \
54 1.1 elric krb5/delete_sec_context.c \
55 1.1 elric krb5/display_name.c \
56 1.1 elric krb5/display_status.c \
57 1.1 elric krb5/duplicate_name.c \
58 1.1 elric krb5/encapsulate.c \
59 1.1 elric krb5/export_name.c \
60 1.1 elric krb5/export_sec_context.c \
61 1.1 elric krb5/external.c \
62 1.1 elric krb5/get_mic.c \
63 1.1 elric krb5/gsskrb5_locl.h \
64 1.1 elric krb5/import_name.c \
65 1.1 elric krb5/import_sec_context.c \
66 1.1 elric krb5/indicate_mechs.c \
67 1.1 elric krb5/init.c \
68 1.1 elric krb5/init_sec_context.c \
69 1.1 elric krb5/inquire_context.c \
70 1.1 elric krb5/inquire_cred.c \
71 1.1 elric krb5/inquire_cred_by_mech.c \
72 1.1 elric krb5/inquire_cred_by_oid.c \
73 1.1 elric krb5/inquire_mechs_for_name.c \
74 1.1 elric krb5/inquire_names_for_mech.c \
75 1.1 elric krb5/inquire_sec_context_by_oid.c \
76 1.1 elric krb5/process_context_token.c \
77 1.1 elric krb5/prf.c \
78 1.1 elric krb5/release_buffer.c \
79 1.1 elric krb5/release_cred.c \
80 1.1 elric krb5/release_name.c \
81 1.1 elric krb5/sequence.c \
82 1.1 elric krb5/store_cred.c \
83 1.1 elric krb5/set_cred_option.c \
84 1.1 elric krb5/set_sec_context_option.c \
85 1.1 elric krb5/ticket_flags.c \
86 1.1 elric krb5/unwrap.c \
87 1.1 elric krb5/verify_mic.c \
88 1.1 elric krb5/wrap.c
89 1.1 elric
90 1.1 elric mechsrc = \
91 1.1 elric mech/context.h \
92 1.1 elric mech/context.c \
93 1.1 elric mech/cred.h \
94 1.1 elric mech/gss_accept_sec_context.c \
95 1.1 elric mech/gss_acquire_cred.c \
96 1.1 elric mech/gss_add_cred.c \
97 1.1 elric mech/gss_add_oid_set_member.c \
98 1.1 elric mech/gss_aeap.c \
99 1.1 elric mech/gss_buffer_set.c \
100 1.1 elric mech/gss_canonicalize_name.c \
101 1.1 elric mech/gss_compare_name.c \
102 1.1 elric mech/gss_context_time.c \
103 1.1 elric mech/gss_create_empty_oid_set.c \
104 1.1 elric mech/gss_cred.c \
105 1.1 elric mech/gss_decapsulate_token.c \
106 1.1 elric mech/gss_delete_sec_context.c \
107 1.1 elric mech/gss_display_name.c \
108 1.1 elric mech/gss_display_status.c \
109 1.1 elric mech/gss_duplicate_name.c \
110 1.1 elric mech/gss_duplicate_oid.c \
111 1.1 elric mech/gss_encapsulate_token.c \
112 1.1 elric mech/gss_export_name.c \
113 1.1 elric mech/gss_export_sec_context.c \
114 1.1 elric mech/gss_get_mic.c \
115 1.1 elric mech/gss_import_name.c \
116 1.1 elric mech/gss_import_sec_context.c \
117 1.1 elric mech/gss_indicate_mechs.c \
118 1.1 elric mech/gss_init_sec_context.c \
119 1.1 elric mech/gss_inquire_context.c \
120 1.1 elric mech/gss_inquire_cred.c \
121 1.1 elric mech/gss_inquire_cred_by_mech.c \
122 1.1 elric mech/gss_inquire_cred_by_oid.c \
123 1.1 elric mech/gss_inquire_mechs_for_name.c \
124 1.1 elric mech/gss_inquire_names_for_mech.c \
125 1.1 elric mech/gss_krb5.c \
126 1.1 elric mech/gss_mech_switch.c \
127 1.1 elric mech/gss_mo.c \
128 1.1 elric mech/gss_names.c \
129 1.1 elric mech/gss_oid.c \
130 1.1 elric mech/gss_oid_equal.c \
131 1.1 elric mech/gss_oid_to_str.c \
132 1.1 elric mech/gss_process_context_token.c \
133 1.1 elric mech/gss_pseudo_random.c \
134 1.1 elric mech/gss_release_buffer.c \
135 1.1 elric mech/gss_release_cred.c \
136 1.1 elric mech/gss_release_name.c \
137 1.1 elric mech/gss_release_oid.c \
138 1.1 elric mech/gss_release_oid_set.c \
139 1.1 elric mech/gss_seal.c \
140 1.1 elric mech/gss_set_cred_option.c \
141 1.1 elric mech/gss_set_sec_context_option.c \
142 1.1 elric mech/gss_sign.c \
143 1.1 elric mech/gss_store_cred.c \
144 1.1 elric mech/gss_test_oid_set_member.c \
145 1.1 elric mech/gss_unseal.c \
146 1.1 elric mech/gss_unwrap.c \
147 1.1 elric mech/gss_utils.c \
148 1.1 elric mech/gss_verify.c \
149 1.1 elric mech/gss_verify_mic.c \
150 1.1 elric mech/gss_wrap.c \
151 1.1 elric mech/gss_wrap_size_limit.c \
152 1.1 elric mech/gss_inquire_sec_context_by_oid.c \
153 1.1 elric mech/mech_switch.h \
154 1.1 elric mech/mechqueue.h \
155 1.1 elric mech/mech_locl.h \
156 1.1 elric mech/name.h \
157 1.1 elric mech/utils.h
158 1.1 elric
159 1.1 elric spnegosrc = \
160 1.1 elric spnego/accept_sec_context.c \
161 1.1 elric spnego/compat.c \
162 1.1 elric spnego/context_stubs.c \
163 1.1 elric spnego/cred_stubs.c \
164 1.1 elric spnego/external.c \
165 1.1 elric spnego/init_sec_context.c \
166 1.1 elric spnego/spnego_locl.h
167 1.1 elric
168 1.1 elric ntlmsrc = \
169 1.1 elric ntlm/accept_sec_context.c \
170 1.1 elric ntlm/acquire_cred.c \
171 1.1 elric ntlm/add_cred.c \
172 1.1 elric ntlm/canonicalize_name.c \
173 1.1 elric ntlm/compare_name.c \
174 1.1 elric ntlm/context_time.c \
175 1.1 elric ntlm/crypto.c \
176 1.1 elric ntlm/delete_sec_context.c \
177 1.1 elric ntlm/display_name.c \
178 1.1 elric ntlm/display_status.c \
179 1.1 elric ntlm/duplicate_name.c \
180 1.1 elric ntlm/export_name.c \
181 1.1 elric ntlm/export_sec_context.c \
182 1.1 elric ntlm/external.c \
183 1.1 elric ntlm/ntlm.h \
184 1.1 elric ntlm/import_name.c \
185 1.1 elric ntlm/import_sec_context.c \
186 1.1 elric ntlm/indicate_mechs.c \
187 1.1 elric ntlm/init_sec_context.c \
188 1.1 elric ntlm/inquire_context.c \
189 1.1 elric ntlm/inquire_cred.c \
190 1.1 elric ntlm/inquire_cred_by_mech.c \
191 1.1 elric ntlm/inquire_mechs_for_name.c \
192 1.1 elric ntlm/inquire_names_for_mech.c \
193 1.1 elric ntlm/process_context_token.c \
194 1.1 elric ntlm/release_cred.c \
195 1.1 elric ntlm/release_name.c \
196 1.1 elric ntlm/kdc.c
197 1.1 elric
198 1.1 elric $(OBJ)\ntlm\ntlm-private.h: $(ntlmsrc)
199 1.1 elric $(PERL) ../../cf/make-proto.pl -q -P remove -p $@ $(ntlmsrc)
200 1.1 elric
201 1.1 elric $(OBJ)\krb5\gsskrb5-private.h: $(krb5src)
202 1.1 elric $(PERL) ../../cf/make-proto.pl -q -P remove -p $@ $(krb5src)
203 1.1 elric
204 1.1 elric $(OBJ)\spnego\spnego-private.h: $(spnegosrc)
205 1.1 elric $(PERL) ../../cf/make-proto.pl -q -P remove -p $@ $(spnegosrc)
206 1.1 elric
207 1.1 elric gssapi_files = $(OBJ)\gssapi\asn1_gssapi_asn1.x
208 1.1 elric
209 1.1 elric spnego_files = $(OBJ)\spnego\asn1_spnego_asn1.x
210 1.1 elric
211 1.1 elric $(gssapi_files:.x=.c): $$(@R).x
212 1.1 elric
213 1.1 elric $(spnego_files:.x=.c): $$(@R).x
214 1.1 elric
215 1.1 elric $(gssapi_files) $(OBJ)\gssapi\gssapi_asn1.hx $(OBJ)\gssapi\gssapi_asn1-priv.hx: \
216 1.1 elric $(BINDIR)\asn1_compile.exe mech\gssapi.asn1
217 1.1 elric cd $(OBJ)\gssapi
218 1.1 elric $(BINDIR)\asn1_compile.exe --one-code-file $(SRCDIR)\mech\gssapi.asn1 gssapi_asn1 \
219 1.1 elric || ( $(RM) $(OBJ)\gssapi\gssapi_asn1.h ; exit /b 1 )
220 1.1 elric cd $(SRCDIR)
221 1.1 elric
222 1.1 elric $(spnego_files) $(OBJ)\spnego\spnego_asn1.hx $(OBJ)\spnego\spnego_asn1-priv.hx: \
223 1.1 elric $(BINDIR)\asn1_compile.exe spnego\spnego.asn1
224 1.1 elric cd $(OBJ)\spnego
225 1.1 elric $(BINDIR)\asn1_compile --one-code-file --sequence=MechTypeList \
226 1.1 elric $(SRCDIR)\spnego\spnego.asn1 spnego_asn1 \
227 1.1 elric || ( $(RM) $(OBJ)\spnego\spnego_asn1.h ; exit /b 1 )
228 1.1 elric cd $(SRCDIR)
229 1.1 elric
230 1.1 elric $(OBJ)\gkrb5_err.c $(OBJ)\gkrb5_err.h: krb5\gkrb5_err.et
231 1.1 elric cd $(OBJ)
232 1.1 elric $(BINDIR)\compile_et.exe $(SRCDIR)\krb5\gkrb5_err.et
233 1.1 elric cd $(SRCDIR)
234 1.1 elric
235 1.1 elric INCFILES= \
236 1.1 elric $(INCDIR)\gssapi.h \
237 1.1 elric $(INCDIR)\gssapi\gssapi.h \
238 1.1 elric $(INCDIR)\gssapi\gssapi_krb5.h \
239 1.1 elric $(INCDIR)\gssapi\gssapi_oid.h \
240 1.1 elric $(INCDIR)\gssapi\gssapi_ntlm.h \
241 1.1 elric $(INCDIR)\gssapi\gssapi_spnego.h \
242 1.1 elric $(INCDIR)\gssapi\gkrb5_err.h \
243 1.1 elric $(OBJ)\ntlm\ntlm-private.h \
244 1.1 elric $(OBJ)\spnego\spnego-private.h \
245 1.1 elric $(OBJ)\krb5\gsskrb5-private.h \
246 1.1 elric $(OBJ)\gkrb5_err.h \
247 1.1 elric $(OBJ)\gssapi\gssapi_asn1.h \
248 1.1 elric $(OBJ)\gssapi\gssapi_asn1-priv.h \
249 1.1 elric $(OBJ)\spnego\spnego_asn1.h \
250 1.1 elric $(OBJ)\spnego\spnego_asn1-priv.h
251 1.1 elric
252 1.1 elric all:: $(INCFILES)
253 1.1 elric
254 1.1 elric libgssapi_OBJs = \
255 1.1 elric $(OBJ)\krb5/8003.obj \
256 1.1 elric $(OBJ)\krb5/accept_sec_context.obj \
257 1.1 elric $(OBJ)\krb5/acquire_cred.obj \
258 1.1 elric $(OBJ)\krb5/add_cred.obj \
259 1.1 elric $(OBJ)\krb5/address_to_krb5addr.obj \
260 1.1 elric $(OBJ)\krb5/aeap.obj \
261 1.1 elric $(OBJ)\krb5/arcfour.obj \
262 1.1 elric $(OBJ)\krb5/canonicalize_name.obj \
263 1.1 elric $(OBJ)\krb5/creds.obj \
264 1.1 elric $(OBJ)\krb5/ccache_name.obj \
265 1.1 elric $(OBJ)\krb5/cfx.obj \
266 1.1 elric $(OBJ)\krb5/compare_name.obj \
267 1.1 elric $(OBJ)\krb5/compat.obj \
268 1.1 elric $(OBJ)\krb5/context_time.obj \
269 1.1 elric $(OBJ)\krb5/copy_ccache.obj \
270 1.1 elric $(OBJ)\krb5/decapsulate.obj \
271 1.1 elric $(OBJ)\krb5/delete_sec_context.obj \
272 1.1 elric $(OBJ)\krb5/display_name.obj \
273 1.1 elric $(OBJ)\krb5/display_status.obj \
274 1.1 elric $(OBJ)\krb5/duplicate_name.obj \
275 1.1 elric $(OBJ)\krb5/encapsulate.obj \
276 1.1 elric $(OBJ)\krb5/export_name.obj \
277 1.1 elric $(OBJ)\krb5/export_sec_context.obj \
278 1.1 elric $(OBJ)\krb5/external.obj \
279 1.1 elric $(OBJ)\krb5/get_mic.obj \
280 1.1 elric $(OBJ)\krb5/import_name.obj \
281 1.1 elric $(OBJ)\krb5/import_sec_context.obj \
282 1.1 elric $(OBJ)\krb5/indicate_mechs.obj \
283 1.1 elric $(OBJ)\krb5/init.obj \
284 1.1 elric $(OBJ)\krb5/init_sec_context.obj \
285 1.1 elric $(OBJ)\krb5/inquire_context.obj \
286 1.1 elric $(OBJ)\krb5/inquire_cred.obj \
287 1.1 elric $(OBJ)\krb5/inquire_cred_by_mech.obj \
288 1.1 elric $(OBJ)\krb5/inquire_cred_by_oid.obj \
289 1.1 elric $(OBJ)\krb5/inquire_mechs_for_name.obj \
290 1.1 elric $(OBJ)\krb5/inquire_names_for_mech.obj \
291 1.1 elric $(OBJ)\krb5/inquire_sec_context_by_oid.obj \
292 1.1 elric $(OBJ)\krb5/process_context_token.obj \
293 1.1 elric $(OBJ)\krb5/prf.obj \
294 1.1 elric $(OBJ)\krb5/release_buffer.obj \
295 1.1 elric $(OBJ)\krb5/release_cred.obj \
296 1.1 elric $(OBJ)\krb5/release_name.obj \
297 1.1 elric $(OBJ)\krb5/sequence.obj \
298 1.1 elric $(OBJ)\krb5/store_cred.obj \
299 1.1 elric $(OBJ)\krb5/set_cred_option.obj \
300 1.1 elric $(OBJ)\krb5/set_sec_context_option.obj \
301 1.1 elric $(OBJ)\krb5/ticket_flags.obj \
302 1.1 elric $(OBJ)\krb5/unwrap.obj \
303 1.1 elric $(OBJ)\krb5/verify_mic.obj \
304 1.1 elric $(OBJ)\krb5/wrap.obj \
305 1.1 elric $(OBJ)\mech/context.obj \
306 1.1 elric $(OBJ)\mech/gss_accept_sec_context.obj \
307 1.1 elric $(OBJ)\mech/gss_acquire_cred.obj \
308 1.1 elric $(OBJ)\mech/gss_add_cred.obj \
309 1.1 elric $(OBJ)\mech/gss_add_oid_set_member.obj \
310 1.1 elric $(OBJ)\mech/gss_aeap.obj \
311 1.1 elric $(OBJ)\mech/gss_buffer_set.obj \
312 1.1 elric $(OBJ)\mech/gss_canonicalize_name.obj \
313 1.1 elric $(OBJ)\mech/gss_compare_name.obj \
314 1.1 elric $(OBJ)\mech/gss_context_time.obj \
315 1.1 elric $(OBJ)\mech/gss_create_empty_oid_set.obj \
316 1.1 elric $(OBJ)\mech/gss_cred.obj \
317 1.1 elric $(OBJ)\mech/gss_decapsulate_token.obj \
318 1.1 elric $(OBJ)\mech/gss_delete_sec_context.obj \
319 1.1 elric $(OBJ)\mech/gss_display_name.obj \
320 1.1 elric $(OBJ)\mech/gss_display_status.obj \
321 1.1 elric $(OBJ)\mech/gss_duplicate_name.obj \
322 1.1 elric $(OBJ)\mech/gss_duplicate_oid.obj \
323 1.1 elric $(OBJ)\mech/gss_encapsulate_token.obj \
324 1.1 elric $(OBJ)\mech/gss_export_name.obj \
325 1.1 elric $(OBJ)\mech/gss_export_sec_context.obj \
326 1.1 elric $(OBJ)\mech/gss_get_mic.obj \
327 1.1 elric $(OBJ)\mech/gss_import_name.obj \
328 1.1 elric $(OBJ)\mech/gss_import_sec_context.obj \
329 1.1 elric $(OBJ)\mech/gss_indicate_mechs.obj \
330 1.1 elric $(OBJ)\mech/gss_init_sec_context.obj \
331 1.1 elric $(OBJ)\mech/gss_inquire_context.obj \
332 1.1 elric $(OBJ)\mech/gss_inquire_cred.obj \
333 1.1 elric $(OBJ)\mech/gss_inquire_cred_by_mech.obj \
334 1.1 elric $(OBJ)\mech/gss_inquire_cred_by_oid.obj \
335 1.1 elric $(OBJ)\mech/gss_inquire_mechs_for_name.obj \
336 1.1 elric $(OBJ)\mech/gss_inquire_names_for_mech.obj \
337 1.1 elric $(OBJ)\mech/gss_krb5.obj \
338 1.1 elric $(OBJ)\mech/gss_mech_switch.obj \
339 1.1 elric $(OBJ)\mech/gss_mo.obj \
340 1.1 elric $(OBJ)\mech/gss_names.obj \
341 1.1 elric $(OBJ)\mech/gss_oid.obj \
342 1.1 elric $(OBJ)\mech/gss_oid_equal.obj \
343 1.1 elric $(OBJ)\mech/gss_oid_to_str.obj \
344 1.1 elric $(OBJ)\mech/gss_process_context_token.obj \
345 1.1 elric $(OBJ)\mech/gss_pseudo_random.obj \
346 1.1 elric $(OBJ)\mech/gss_release_buffer.obj \
347 1.1 elric $(OBJ)\mech/gss_release_cred.obj \
348 1.1 elric $(OBJ)\mech/gss_release_name.obj \
349 1.1 elric $(OBJ)\mech/gss_release_oid.obj \
350 1.1 elric $(OBJ)\mech/gss_release_oid_set.obj \
351 1.1 elric $(OBJ)\mech/gss_seal.obj \
352 1.1 elric $(OBJ)\mech/gss_set_cred_option.obj \
353 1.1 elric $(OBJ)\mech/gss_set_sec_context_option.obj \
354 1.1 elric $(OBJ)\mech/gss_sign.obj \
355 1.1 elric $(OBJ)\mech/gss_store_cred.obj \
356 1.1 elric $(OBJ)\mech/gss_test_oid_set_member.obj \
357 1.1 elric $(OBJ)\mech/gss_unseal.obj \
358 1.1 elric $(OBJ)\mech/gss_unwrap.obj \
359 1.1 elric $(OBJ)\mech/gss_utils.obj \
360 1.1 elric $(OBJ)\mech/gss_verify.obj \
361 1.1 elric $(OBJ)\mech/gss_verify_mic.obj \
362 1.1 elric $(OBJ)\mech/gss_wrap.obj \
363 1.1 elric $(OBJ)\mech/gss_wrap_size_limit.obj \
364 1.1 elric $(OBJ)\mech/gss_inquire_sec_context_by_oid.obj \
365 1.1 elric $(OBJ)\spnego/accept_sec_context.obj \
366 1.1 elric $(OBJ)\spnego/compat.obj \
367 1.1 elric $(OBJ)\spnego/context_stubs.obj \
368 1.1 elric $(OBJ)\spnego/cred_stubs.obj \
369 1.1 elric $(OBJ)\spnego/external.obj \
370 1.1 elric $(OBJ)\spnego/init_sec_context.obj \
371 1.1 elric $(OBJ)\ntlm/accept_sec_context.obj \
372 1.1 elric $(OBJ)\ntlm/acquire_cred.obj \
373 1.1 elric $(OBJ)\ntlm/add_cred.obj \
374 1.1 elric $(OBJ)\ntlm/canonicalize_name.obj \
375 1.1 elric $(OBJ)\ntlm/compare_name.obj \
376 1.1 elric $(OBJ)\ntlm/context_time.obj \
377 1.1 elric $(OBJ)\ntlm/crypto.obj \
378 1.1 elric $(OBJ)\ntlm/delete_sec_context.obj \
379 1.1 elric $(OBJ)\ntlm/display_name.obj \
380 1.1 elric $(OBJ)\ntlm/display_status.obj \
381 1.1 elric $(OBJ)\ntlm/duplicate_name.obj \
382 1.1 elric $(OBJ)\ntlm/export_name.obj \
383 1.1 elric $(OBJ)\ntlm/export_sec_context.obj \
384 1.1 elric $(OBJ)\ntlm/external.obj \
385 1.1 elric $(OBJ)\ntlm/import_name.obj \
386 1.1 elric $(OBJ)\ntlm/import_sec_context.obj \
387 1.1 elric $(OBJ)\ntlm/indicate_mechs.obj \
388 1.1 elric $(OBJ)\ntlm/init_sec_context.obj \
389 1.1 elric $(OBJ)\ntlm/inquire_context.obj \
390 1.1 elric $(OBJ)\ntlm/inquire_cred.obj \
391 1.1 elric $(OBJ)\ntlm/inquire_cred_by_mech.obj \
392 1.1 elric $(OBJ)\ntlm/inquire_mechs_for_name.obj \
393 1.1 elric $(OBJ)\ntlm/inquire_names_for_mech.obj \
394 1.1 elric $(OBJ)\ntlm/process_context_token.obj \
395 1.1 elric $(OBJ)\ntlm/release_cred.obj \
396 1.1 elric $(OBJ)\ntlm/release_name.obj \
397 1.1 elric $(OBJ)\ntlm/kdc.obj \
398 1.1 elric $(OBJ)\gkrb5_err.obj \
399 1.1 elric $(spnego_files:.x=.obj) \
400 1.1 elric $(gssapi_files:.x=.obj)
401 1.1 elric
402 1.1 elric GCOPTS=-I$(SRCDIR) -I$(OBJ) -Igssapi -DBUILD_GSSAPI_LIB
403 1.1 elric
404 1.1 elric {$(OBJ)\krb5}.c{$(OBJ)\krb5}.obj::
405 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\krb5\ -Fd$(OBJ)\krb5\ -I$(OBJ)\krb5 $(GCOPTS)
406 1.1 elric
407 1.1 elric {krb5}.c{$(OBJ)\krb5}.obj::
408 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\krb5\ -Fd$(OBJ)\krb5\ -I$(OBJ)\krb5 $(GCOPTS) -DASN1_LIB
409 1.1 elric
410 1.1 elric {$(OBJ)\mech}.c{$(OBJ)\mech}.obj::
411 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\mech\ -Fd$(OBJ)\mech\ -I$(OBJ)\mech $(GCOPTS)
412 1.1 elric
413 1.1 elric {mech}.c{$(OBJ)\mech}.obj::
414 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\mech\ -Fd$(OBJ)\mech\ -I$(OBJ)\mech -I$(OBJ)\gssapi $(GCOPTS) -DASN1_LIB
415 1.1 elric
416 1.1 elric {$(OBJ)\ntlm}.c{$(OBJ)\ntlm}.obj::
417 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\ntlm\ -Fd$(OBJ)\ntlm\ -I$(OBJ)\ntlm $(GCOPTS)
418 1.1 elric
419 1.1 elric {ntlm}.c{$(OBJ)\ntlm}.obj::
420 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\ntlm\ -Fd$(OBJ)\ntlm\ -I$(OBJ)\ntlm $(GCOPTS) -DASN1_LIB
421 1.1 elric
422 1.1 elric {$(OBJ)\spnego}.c{$(OBJ)\spnego}.obj::
423 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\spnego\ -Fd$(OBJ)\spnego\ -I$(OBJ)\spnego $(GCOPTS)
424 1.1 elric
425 1.1 elric {spnego}.c{$(OBJ)\spnego}.obj::
426 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\spnego\ -Fd$(OBJ)\spnego\ -I$(OBJ)\spnego -Imech $(GCOPTS) -DASN1_LIB
427 1.1 elric
428 1.1 elric {$(OBJ)\gssapi}.c{$(OBJ)\gssapi}.obj::
429 1.1 elric $(C2OBJ_NP) -Fo$(OBJ)\gssapi\ -Fd$(OBJ)\gssapi\ -I$(OBJ)\gssapi $(GCOPTS)
430 1.1 elric
431 1.1 elric {$(OBJ)}.c{$(OBJ)}.obj::
432 1.1 elric $(C2OBJ_P) $(GCOPTS)
433 1.1 elric
434 1.1 elric {$(OBJ)\spnego}.x{$(OBJ)\spnego}.c:
435 1.1 elric $(CP) $** $@
436 1.1 elric
437 1.1 elric {$(OBJ)\gssapi}.x{$(OBJ)\gssapi}.c:
438 1.1 elric $(CP) $** $@
439 1.1 elric
440 1.1 elric {gssapi}.h{$(INCDIR)\gssapi}.h:
441 1.1 elric $(CP) $** $@
442 1.1 elric
443 1.1 elric {$(OBJ)}.h{$(INCDIR)\gssapi}.h:
444 1.1 elric $(CP) $** $@
445 1.1 elric
446 1.1 elric {$(OBJ)\gssapi}.hx{$(OBJ)\gssapi}.h:
447 1.1 elric $(CP) $** $@
448 1.1 elric
449 1.1 elric {$(OBJ)\spnego}.hx{$(OBJ)\spnego}.h:
450 1.1 elric $(CP) $** $@
451 1.1 elric
452 1.1 elric LIBGSSAPI_LIBS=\
453 1.1 elric $(LIBROKEN) \
454 1.1 elric $(LIBHEIMDAL) \
455 1.1 elric $(LIBHEIMNTLM) \
456 1.1 elric $(LIBCOMERR)
457 1.1 elric
458 1.1 elric LIBGSSAPI_SDKLIBS=\
459 1.1 elric $(PTHREAD_LIB)
460 1.1 elric
461 1.1 elric !ifndef STATICLIBS
462 1.1 elric
463 1.1 elric RES=$(OBJ)\libgssapi-version.res
464 1.1 elric
465 1.1 elric $(BINDIR)\gssapi.dll: $(libgssapi_OBJs) $(RES)
466 1.1 elric $(DLLGUILINK_C) -implib:$(LIBGSSAPI) \
467 1.1 elric -out:$(BINDIR)\gssapi.dll \
468 1.1 elric -def:libgssapi-exports.def \
469 1.1 elric $(LIBGSSAPI_LIBS) $(RES) $(LIBGSSAPI_SDKLIBS) @<<
470 1.1 elric $(libgssapi_OBJs: =
471 1.1 elric )
472 1.1 elric <<
473 1.1 elric $(DLLPREP_NODIST)
474 1.1 elric
475 1.1 elric $(LIBGSSAPI): $(BINDIR)\gssapi.dll
476 1.1 elric
477 1.1 elric clean::
478 1.1 elric -$(RM) $(BINDIR)\gssapi.*
479 1.1 elric
480 1.1 elric !else
481 1.1 elric
482 1.1 elric $(LIBGSSAPI): $(libgssapi_OBJs)
483 1.1 elric $(LIBCON_C) -OUT:$@ $(LIBGSSAPI_LIBS) $(LIBGSSAPI_SDKLIBS) @<<
484 1.1 elric $(libgssapi_OBJs: =
485 1.1 elric )
486 1.1 elric <<
487 1.1 elric
488 1.1 elric !endif
489 1.1 elric
490 1.1 elric all:: $(LIBGSSAPI)
491 1.1 elric
492 1.1 elric clean::
493 1.1 elric -$(RM) $(LIBGSSAPI)
494 1.1 elric
495 1.1 elric prep:: mkdirs-gss
496 1.1 elric
497 1.1 elric mkdirs-gss:
498 1.1 elric !if !exist($(OBJ)\ntlm)
499 1.1 elric $(MKDIR) $(OBJ)\ntlm
500 1.1 elric !endif
501 1.1 elric !if !exist($(OBJ)\krb5)
502 1.1 elric $(MKDIR) $(OBJ)\krb5
503 1.1 elric !endif
504 1.1 elric !if !exist($(OBJ)\spnego)
505 1.1 elric $(MKDIR) $(OBJ)\spnego
506 1.1 elric !endif
507 1.1 elric !if !exist($(OBJ)\mech)
508 1.1 elric $(MKDIR) $(OBJ)\mech
509 1.1 elric !endif
510 1.1 elric !if !exist($(OBJ)\gssapi)
511 1.1 elric $(MKDIR) $(OBJ)\gssapi
512 1.1 elric !endif
513 1.1 elric
514 1.1 elric clean::
515 1.1 elric -$(RM) $(OBJ)\ntlm\*.*
516 1.1 elric -$(RM) $(OBJ)\krb5\*.*
517 1.1 elric -$(RM) $(OBJ)\spnego\*.*
518 1.1 elric -$(RM) $(OBJ)\mech\*.*
519 1.1 elric -$(RM) $(OBJ)\gssapi\*.*
520 1.1 elric
521 1.1 elric all-tools:: $(BINDIR)\gsstool.exe
522 1.1 elric
523 1.1 elric $(BINDIR)\gsstool.exe: $(OBJ)\gsstool.obj $(OBJ)\gss-commands.obj $(LIBGSSAPI) $(LIBROKEN) $(LIBSL) $(LIBVERS)
524 1.1 elric $(EXECONLINK)
525 1.1 elric
526 1.1 elric $(OBJ)\gss-commands.c $(OBJ)\gss-commands.h: gss-commands.in
527 1.1 elric cd $(OBJ)
528 1.1 elric $(CP) $(SRCDIR)\gss-commands.in gss-commands.in
529 1.1 elric $(BINDIR)\slc.exe gss-commands.in
530 1.1 elric cd $(SRCDIR)
531 1.1 elric
532 1.1 elric !ifdef ELISP
533 1.1 elric # This macro invocation is used to update the libgssapi_OBJs
534 1.1 elric # definition below (generate-obj-macro is defined in maint.el):
535 1.1 elric
536 1.1 elric (generate-obj-macro "libgssapi_OBJs"
537 1.1 elric (concat "\t$(OBJ)\\gkrb5_err.obj \\\n"
538 1.1 elric "\t$(spnego_files:.x=.obj) \\\n"
539 1.1 elric "\t$(gssapi_files:.x=.obj)")
540 1.1 elric "krb5src" "mechsrc" "spnegosrc" "ntlmsrc")
541 1.1 elric !endif
542 1.1 elric
543 1.1 elric test-exports:
544 1.1 elric $(PERL) ..\..\cf\w32-check-exported-symbols.pl --vs version-script.map --def libgssapi-exports.def
545 1.1 elric
546 1.1 elric test:: test-exports
547 1.1 elric
548 1.1 elric
549 1.1 elric TEST_BINARIES=\
550 1.1 elric $(OBJ)\test_oid.exe \
551 1.1 elric $(OBJ)\test_names.exe \
552 1.1 elric $(OBJ)\test_cfx.exe \
553 1.1 elric $(OBJ)\test_acquire_cred.exe \
554 1.1 elric $(OBJ)\test_cred.exe \
555 1.1 elric $(OBJ)\test_kcred.exe \
556 1.1 elric $(OBJ)\test_context.exe \
557 1.1 elric $(OBJ)\test_ntlm.exe
558 1.1 elric
559 1.1 elric $(OBJ)\test_oid.exe: $(OBJ)\test_oid.obj $(LIBGSSAPI) $(LIBROKEN)
560 1.1 elric $(EXECONLINK)
561 1.1 elric $(EXEPREP_NODIST)
562 1.1 elric
563 1.1 elric $(OBJ)\test_names.exe: $(OBJ)\test_names.obj $(LIBGSSAPI) $(LIBROKEN) $(LIBVERS)
564 1.1 elric $(EXECONLINK)
565 1.1 elric $(EXEPREP_NODIST)
566 1.1 elric
567 1.1 elric $(OBJ)\test_cfx.exe: $(OBJ)\krb5\test_cfx.obj $(LIBHEIMDAL) $(LIBGSSAPI) $(LIBROKEN)
568 1.1 elric $(EXECONLINK)
569 1.1 elric $(EXEPREP_NODIST)
570 1.1 elric
571 1.1 elric $(OBJ)\test_acquire_cred.exe: $(OBJ)\test_acquire_cred.obj $(OBJ)\test_common.obj \
572 1.1 elric $(LIBGSSAPI) $(LIBROKEN) $(LIBVERS)
573 1.1 elric $(EXECONLINK)
574 1.1 elric $(EXEPREP_NODIST)
575 1.1 elric
576 1.1 elric $(OBJ)\test_cred.exe: $(OBJ)\test_cred.obj $(LIBGSSAPI) $(LIBROKEN) $(LIBVERS)
577 1.1 elric $(EXECONLINK)
578 1.1 elric $(EXEPREP_NODIST)
579 1.1 elric
580 1.1 elric $(OBJ)\test_kcred.exe: $(OBJ)\test_kcred.obj $(LIBGSSAPI) $(LIBHEIMDAL) \
581 1.1 elric $(LIBROKEN) $(LIBVERS)
582 1.1 elric $(EXECONLINK)
583 1.1 elric $(EXEPREP_NODIST)
584 1.1 elric
585 1.1 elric $(OBJ)\test_context.exe: $(OBJ)\test_context.obj $(OBJ)\test_common.obj \
586 1.1 elric $(LIBGSSAPI) $(LIBHEIMDAL) $(LIBROKEN) $(LIBVERS)
587 1.1 elric $(EXECONLINK)
588 1.1 elric $(EXEPREP_NODIST)
589 1.1 elric
590 1.1 elric $(OBJ)\test_ntlm.exe: $(OBJ)\test_ntlm.obj $(OBJ)\test_common.obj \
591 1.1 elric $(LIBGSSAPI) $(LIBHEIMNTLM) $(LIBROKEN) $(LIBVERS)
592 1.1 elric $(EXECONLINK)
593 1.1 elric $(EXEPREP_NODIST)
594 1.1 elric
595 1.1 elric {}.c{$(OBJ)}.obj::
596 1.1 elric $(C2OBJ_P) -I$(OBJ)\krb5 -I$(OBJ) -I$(SRCDIR) -I$(SRCDIR)\gssapi
597 1.1 elric
598 1.1 elric test-binaries: $(LIBGSSAPI) $(TEST_BINARIES)
599 1.1 elric
600 1.1 elric run-test:
601 1.1 elric cd $(OBJ)
602 1.1 elric test_oid
603 1.1 elric test_names
604 1.1 elric test_cfx
605 1.1 elric test_kcred
606 1.1 elric cd $(SRCDIR)
607 1.1 elric
608 1.1 elric test:: test-binaries run-test
609