add more test to test_acquire_cred that removes the need of test_init_creds.c
[heimdal.git] / lib / gssapi / Makefile.am
blobdf2b12eb3ad34e6e94014b436830f00389aace05
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AUTOMAKE_OPTIONS = subdir-objects
7 AM_CPPFLAGS += \
8         -I$(srcdir)/../krb5 \
9         -I$(srcdir) \
10         -I$(srcdir)/gssapi \
11         -I$(srcdir)/mech \
12         -I$(srcdir)/ntlm \
13         -I$(srcdir)/krb5 \
14         -I$(srcdir)/spnego \
15         $(INCLUDE_libintl) \
16         $(INCLUDE_hcrypto) \
17         $(INCLUDE_krb4)
19 lib_LTLIBRARIES = libgssapi.la
21 krb5src = \
22         krb5/8003.c \
23         krb5/accept_sec_context.c \
24         krb5/acquire_cred.c \
25         krb5/add_cred.c \
26         krb5/address_to_krb5addr.c \
27         krb5/aeap.c \
28         krb5/arcfour.c \
29         krb5/canonicalize_name.c \
30         krb5/creds.c \
31         krb5/ccache_name.c \
32         krb5/cfx.c \
33         krb5/cfx.h \
34         krb5/compare_name.c \
35         krb5/compat.c \
36         krb5/context_time.c \
37         krb5/copy_ccache.c \
38         krb5/decapsulate.c \
39         krb5/delete_sec_context.c \
40         krb5/display_name.c \
41         krb5/display_status.c \
42         krb5/duplicate_name.c \
43         krb5/encapsulate.c \
44         krb5/export_name.c \
45         krb5/export_sec_context.c \
46         krb5/external.c \
47         krb5/get_mic.c \
48         krb5/gsskrb5_locl.h \
49         krb5/gsskrb5-private.h \
50         krb5/import_name.c \
51         krb5/import_sec_context.c \
52         krb5/indicate_mechs.c \
53         krb5/init.c \
54         krb5/init_sec_context.c \
55         krb5/inquire_context.c \
56         krb5/inquire_cred.c \
57         krb5/inquire_cred_by_mech.c \
58         krb5/inquire_cred_by_oid.c \
59         krb5/inquire_mechs_for_name.c \
60         krb5/inquire_names_for_mech.c \
61         krb5/inquire_sec_context_by_oid.c \
62         krb5/process_context_token.c \
63         krb5/prf.c \
64         krb5/release_buffer.c \
65         krb5/release_cred.c \
66         krb5/release_name.c \
67         krb5/sequence.c \
68         krb5/store_cred.c \
69         krb5/set_cred_option.c \
70         krb5/set_sec_context_option.c \
71         krb5/ticket_flags.c \
72         krb5/unwrap.c \
73         krb5/verify_mic.c \
74         krb5/wrap.c
76 mechsrc = \
77         mech/context.h \
78         mech/context.c \
79         mech/cred.h \
80         mech/doxygen.c \
81         mech/gss_accept_sec_context.c \
82         mech/gss_acquire_cred.c \
83         mech/gss_add_cred.c \
84         mech/gss_add_oid_set_member.c \
85         mech/gss_aeap.c \
86         mech/gss_buffer_set.c \
87         mech/gss_canonicalize_name.c \
88         mech/gss_compare_name.c \
89         mech/gss_context_time.c \
90         mech/gss_create_empty_oid_set.c \
91         mech/gss_cred.c \
92         mech/gss_decapsulate_token.c \
93         mech/gss_delete_sec_context.c \
94         mech/gss_display_name.c \
95         mech/gss_display_status.c \
96         mech/gss_duplicate_name.c \
97         mech/gss_duplicate_oid.c \
98         mech/gss_encapsulate_token.c \
99         mech/gss_export_name.c \
100         mech/gss_export_sec_context.c \
101         mech/gss_get_mic.c \
102         mech/gss_import_name.c \
103         mech/gss_import_sec_context.c \
104         mech/gss_indicate_mechs.c \
105         mech/gss_init_sec_context.c \
106         mech/gss_inquire_context.c \
107         mech/gss_inquire_cred.c \
108         mech/gss_inquire_cred_by_mech.c \
109         mech/gss_inquire_cred_by_oid.c \
110         mech/gss_inquire_mechs_for_name.c \
111         mech/gss_inquire_names_for_mech.c \
112         mech/gss_krb5.c \
113         mech/gss_mech_switch.c \
114         mech/gss_names.c \
115         mech/gss_oid_equal.c \
116         mech/gss_oid_to_str.c \
117         mech/gss_process_context_token.c \
118         mech/gss_pseudo_random.c \
119         mech/gss_release_buffer.c \
120         mech/gss_release_cred.c \
121         mech/gss_release_name.c \
122         mech/gss_release_oid.c \
123         mech/gss_release_oid_set.c \
124         mech/gss_seal.c \
125         mech/gss_set_cred_option.c \
126         mech/gss_set_sec_context_option.c \
127         mech/gss_sign.c \
128         mech/gss_store_cred.c \
129         mech/gss_test_oid_set_member.c \
130         mech/gss_unseal.c \
131         mech/gss_unwrap.c \
132         mech/gss_utils.c \
133         mech/gss_verify.c \
134         mech/gss_verify_mic.c \
135         mech/gss_wrap.c \
136         mech/gss_wrap_size_limit.c \
137         mech/gss_inquire_sec_context_by_oid.c \
138         mech/mech_switch.h \
139         mech/mechqueue.h \
140         mech/mech_locl.h \
141         mech/name.h \
142         mech/utils.h
144 spnegosrc = \
145         spnego/accept_sec_context.c \
146         spnego/compat.c \
147         spnego/context_stubs.c \
148         spnego/cred_stubs.c \
149         spnego/external.c \
150         spnego/init_sec_context.c \
151         spnego/spnego_locl.h \
152         spnego/spnego-private.h
154 ntlmsrc = \
155         ntlm/accept_sec_context.c \
156         ntlm/acquire_cred.c \
157         ntlm/add_cred.c \
158         ntlm/canonicalize_name.c \
159         ntlm/compare_name.c \
160         ntlm/context_time.c \
161         ntlm/crypto.c \
162         ntlm/delete_sec_context.c \
163         ntlm/display_name.c \
164         ntlm/display_status.c \
165         ntlm/duplicate_name.c \
166         ntlm/export_name.c \
167         ntlm/export_sec_context.c \
168         ntlm/external.c \
169         ntlm/ntlm.h \
170         ntlm/ntlm-private.h \
171         ntlm/import_name.c \
172         ntlm/import_sec_context.c \
173         ntlm/indicate_mechs.c \
174         ntlm/init_sec_context.c \
175         ntlm/inquire_context.c \
176         ntlm/inquire_cred.c \
177         ntlm/inquire_cred_by_mech.c \
178         ntlm/inquire_mechs_for_name.c \
179         ntlm/inquire_names_for_mech.c \
180         ntlm/process_context_token.c \
181         ntlm/release_cred.c \
182         ntlm/release_name.c \
183         ntlm/kdc.c
185 $(srcdir)/ntlm/ntlm-private.h:
186         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p ntlm/ntlm-private.h $(ntlmsrc) || rm -f ntlm/ntlm-private.h
188 dist_libgssapi_la_SOURCES  = \
189         $(krb5src) \
190         $(mechsrc) \
191         $(ntlmsrc) \
192         $(spnegosrc)
194 nodist_libgssapi_la_SOURCES  = \
195         gkrb5_err.c \
196         gkrb5_err.h \
197         $(BUILT_SOURCES)
199 libgssapi_la_LDFLAGS = -version-info 2:0:0
201 if versionscript
202 libgssapi_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
203 endif
205 libgssapi_la_LIBADD = \
206         $(top_builddir)/lib/ntlm/libheimntlm.la \
207         $(top_builddir)/lib/krb5/libkrb5.la \
208         $(top_builddir)/lib/asn1/libasn1.la \
209         $(LIB_com_err) \
210         $(LIB_hcrypto) \
211         $(LIBADD_roken)
213 man_MANS = gssapi.3 gss_acquire_cred.3 mech/mech.5
215 include_HEADERS = gssapi.h
216 noinst_HEADERS = \
217         gssapi_mech.h \
218         ntlm/ntlm-private.h \
219         spnego/spnego-private.h \
220         krb5/gsskrb5-private.h
221 nobase_include_HEADERS = \
222         gssapi/gssapi.h \
223         gssapi/gssapi_krb5.h \
224         gssapi/gssapi_ntlm.h \
225         gssapi/gssapi_spnego.h
227 gssapidir = $(includedir)/gssapi
228 nodist_gssapi_HEADERS = gkrb5_err.h
230 gssapi_files = asn1_GSSAPIContextToken.x
232 spnego_files =                                  \
233         asn1_ContextFlags.x                     \
234         asn1_MechType.x                         \
235         asn1_MechTypeList.x                     \
236         asn1_NegotiationToken.x                 \
237         asn1_NegotiationTokenWin.x              \
238         asn1_NegHints.x                         \
239         asn1_NegTokenInit.x                     \
240         asn1_NegTokenInitWin.x                  \
241         asn1_NegTokenResp.x
243 BUILTHEADERS = \
244         $(srcdir)/krb5/gsskrb5-private.h \
245         $(srcdir)/spnego/spnego-private.h \
246         $(srcdir)/ntlm/ntlm-private.h
248 $(libgssapi_la_OBJECTS): $(BUILTHEADERS)
249 $(test_context_OBJECTS): $(BUILTHEADERS)
251 $(libgssapi_la_OBJECTS): $(srcdir)/version-script.map
253 BUILT_SOURCES = $(spnego_files:.x=.c) $(gssapi_files:.x=.c)
255 CLEANFILES = $(BUILT_SOURCES) \
256         gkrb5_err.h gkrb5_err.c \
257         $(spnego_files) spnego_asn1.h spnego_asn1_files \
258         $(gssapi_files) gssapi_asn1.h gssapi_asn1_files \
259         gss-commands.h gss-commands.c
261 $(spnego_files) spnego_asn1.hx: spnego_asn1_files
262 $(gssapi_files) gssapi_asn1.hx: gssapi_asn1_files
264 spnego_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/spnego/spnego.asn1 $(srcdir)/spnego/spnego.opt
265         ../asn1/asn1_compile$(EXEEXT) --option-file=$(srcdir)/spnego/spnego.opt $(srcdir)/spnego/spnego.asn1 spnego_asn1
267 gssapi_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/mech/gssapi.asn1
268         ../asn1/asn1_compile$(EXEEXT) $(srcdir)/mech/gssapi.asn1 gssapi_asn1
270 $(srcdir)/krb5/gsskrb5-private.h:
271         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5/gsskrb5-private.h $(krb5src) || rm -f krb5/gsskrb5-private.h
273 $(srcdir)/spnego/spnego-private.h:
274         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p spnego/spnego-private.h $(spnegosrc) || rm -f spnego/spnego-private.h
277 TESTS = test_oid test_names test_cfx
278 # test_sequence 
280 test_cfx_SOURCES = krb5/test_cfx.c
282 check_PROGRAMS = test_acquire_cred $(TESTS)
284 bin_PROGRAMS = gss
285 noinst_PROGRAMS = test_cred test_kcred test_context test_ntlm
287 test_context_SOURCES = test_context.c test_common.c test_common.h
288 test_ntlm_SOURCES = test_ntlm.c test_common.c test_common.h
289 test_acquire_cred_SOURCES = test_acquire_cred.c test_common.c test_common.h
291 test_ntlm_LDADD = \
292         $(top_builddir)/lib/ntlm/libheimntlm.la \
293         $(LDADD)
295 LDADD = libgssapi.la \
296         $(top_builddir)/lib/krb5/libkrb5.la \
297         $(LIB_roken)
299 # gss
301 dist_gss_SOURCES = gss.c
302 nodist_gss_SOURCES = gss-commands.c gss-commands.h
304 gss_LDADD = libgssapi.la \
305         $(top_builddir)/lib/sl/libsl.la \
306         $(top_builddir)/lib/krb5/libkrb5.la \
307         $(LIB_readline) \
308         $(LIB_roken)
310 SLC = $(top_builddir)/lib/sl/slc
312 gss-commands.c gss-commands.h: gss-commands.in
313         $(SLC) $(srcdir)/gss-commands.in
315 $(gss_OBJECTS): gss-commands.h
317 EXTRA_DIST = \
318         $(man_MANS) \
319         krb5/gkrb5_err.et \
320         mech/gssapi.asn1 \
321         spnego/spnego.asn1 \
322         spnego/spnego.opt \
323         version-script.map \
324         gss-commands.in
326 # to help stupid solaris make
328 $(libgssapi_la_OBJECTS): gkrb5_err.h gssapi_asn1.h spnego_asn1.h
330 gkrb5_err.h gkrb5_err.c: $(srcdir)/krb5/gkrb5_err.et
331         $(COMPILE_ET) $(srcdir)/krb5/gkrb5_err.et