3 include $(top_srcdir)/Makefile.am.common
5 AUTOMAKE_OPTIONS = subdir-objects
19 lib_LTLIBRARIES = libgssapi.la
23 krb5/accept_sec_context.c \
26 krb5/address_to_krb5addr.c \
29 krb5/canonicalize_name.c \
39 krb5/delete_sec_context.c \
41 krb5/display_status.c \
42 krb5/duplicate_name.c \
45 krb5/export_sec_context.c \
49 krb5/gsskrb5-private.h \
51 krb5/import_sec_context.c \
52 krb5/indicate_mechs.c \
54 krb5/init_sec_context.c \
55 krb5/inquire_context.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 \
64 krb5/release_buffer.c \
69 krb5/set_cred_option.c \
70 krb5/set_sec_context_option.c \
81 mech/gss_accept_sec_context.c \
82 mech/gss_acquire_cred.c \
84 mech/gss_add_oid_set_member.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 \
92 mech/gss_decapsulate_token.c \
93 mech/gss_delete_name_attribute.c \
94 mech/gss_delete_sec_context.c \
95 mech/gss_display_name.c \
96 mech/gss_display_name_ext.c \
97 mech/gss_display_status.c \
98 mech/gss_duplicate_name.c \
99 mech/gss_duplicate_oid.c \
100 mech/gss_encapsulate_token.c \
101 mech/gss_export_name.c \
102 mech/gss_export_name_composite.c \
103 mech/gss_export_sec_context.c \
105 mech/gss_get_name_attribute.c \
106 mech/gss_import_name.c \
107 mech/gss_import_sec_context.c \
108 mech/gss_indicate_mechs.c \
109 mech/gss_init_sec_context.c \
110 mech/gss_inquire_context.c \
111 mech/gss_inquire_cred.c \
112 mech/gss_inquire_cred_by_mech.c \
113 mech/gss_inquire_cred_by_oid.c \
114 mech/gss_inquire_mechs_for_name.c \
115 mech/gss_inquire_name.c \
116 mech/gss_inquire_names_for_mech.c \
118 mech/gss_mech_switch.c \
122 mech/gss_oid_equal.c \
123 mech/gss_oid_to_str.c \
124 mech/gss_process_context_token.c \
125 mech/gss_pseudo_random.c \
126 mech/gss_release_buffer.c \
127 mech/gss_release_cred.c \
128 mech/gss_release_name.c \
129 mech/gss_release_oid.c \
130 mech/gss_release_oid_set.c \
132 mech/gss_set_cred_option.c \
133 mech/gss_set_name_attribute.c \
134 mech/gss_set_sec_context_option.c \
136 mech/gss_store_cred.c \
137 mech/gss_test_oid_set_member.c \
142 mech/gss_verify_mic.c \
144 mech/gss_wrap_size_limit.c \
145 mech/gss_inquire_sec_context_by_oid.c \
153 spnego/accept_sec_context.c \
155 spnego/context_stubs.c \
156 spnego/cred_stubs.c \
158 spnego/init_sec_context.c \
159 spnego/spnego_locl.h \
160 spnego/spnego-private.h
163 ntlm/accept_sec_context.c \
164 ntlm/acquire_cred.c \
166 ntlm/canonicalize_name.c \
167 ntlm/compare_name.c \
168 ntlm/context_time.c \
171 ntlm/delete_sec_context.c \
172 ntlm/display_name.c \
173 ntlm/display_status.c \
174 ntlm/duplicate_name.c \
176 ntlm/export_sec_context.c \
179 ntlm/ntlm-private.h \
181 ntlm/import_sec_context.c \
182 ntlm/indicate_mechs.c \
183 ntlm/init_sec_context.c \
184 ntlm/inquire_context.c \
185 ntlm/inquire_cred_by_mech.c \
186 ntlm/inquire_mechs_for_name.c \
187 ntlm/inquire_names_for_mech.c \
188 ntlm/inquire_sec_context_by_oid.c \
190 ntlm/process_context_token.c \
191 ntlm/release_cred.c \
192 ntlm/release_name.c \
195 $(srcdir)/ntlm/ntlm-private.h:
196 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p ntlm/ntlm-private.h $(ntlmsrc) || rm -f ntlm/ntlm-private.h
198 dist_libgssapi_la_SOURCES = \
204 nodist_libgssapi_la_SOURCES = \
209 libgssapi_la_LDFLAGS = -version-info 3:0:0
212 libgssapi_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
215 libgssapi_la_LIBADD = \
216 $(top_builddir)/lib/ntlm/libheimntlm.la \
217 $(top_builddir)/lib/krb5/libkrb5.la \
218 $(top_builddir)/lib/asn1/libasn1.la \
223 man_MANS = gssapi.3 gss_acquire_cred.3 mech/mech.5
225 include_HEADERS = gssapi.h
228 ntlm/ntlm-private.h \
229 spnego/spnego-private.h \
230 krb5/gsskrb5-private.h
232 nobase_include_HEADERS = \
234 gssapi/gssapi_krb5.h \
235 gssapi/gssapi_ntlm.h \
236 gssapi/gssapi_oid.h \
237 gssapi/gssapi_spnego.h
239 gssapidir = $(includedir)/gssapi
240 nodist_gssapi_HEADERS = gkrb5_err.h
242 gssapi_files = asn1_GSSAPIContextToken.x
245 asn1_ContextFlags.x \
247 asn1_MechTypeList.x \
248 asn1_NegotiationToken.x \
249 asn1_NegotiationTokenWin.x \
251 asn1_NegTokenInit.x \
252 asn1_NegTokenInitWin.x \
256 $(srcdir)/krb5/gsskrb5-private.h \
257 $(srcdir)/spnego/spnego-private.h \
258 $(srcdir)/ntlm/ntlm-private.h
260 $(libgssapi_la_OBJECTS): $(BUILTHEADERS)
261 $(test_context_OBJECTS): $(BUILTHEADERS)
263 $(libgssapi_la_OBJECTS): $(srcdir)/version-script.map
265 BUILT_SOURCES = $(spnego_files:.x=.c) $(gssapi_files:.x=.c)
267 CLEANFILES = $(BUILT_SOURCES) \
268 gkrb5_err.h gkrb5_err.c \
269 $(spnego_files) spnego_asn1*.h* spnego_asn1_files spnego_asn1-template.c \
270 $(gssapi_files) gssapi_asn1*.h* gssapi_asn1_files gssapi_asn1-template.c \
271 gss-commands.h gss-commands.c
273 $(spnego_files) spnego_asn1.hx spnego_asn1-priv.hx: spnego_asn1_files
274 $(gssapi_files) gssapi_asn1.hx gssapi_asn1-priv.hx: gssapi_asn1_files
276 spnego_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/spnego/spnego.asn1 $(srcdir)/spnego/spnego.opt
277 $(ASN1_COMPILE) --option-file=$(srcdir)/spnego/spnego.opt $(srcdir)/spnego/spnego.asn1 spnego_asn1
279 gssapi_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/mech/gssapi.asn1
280 $(ASN1_COMPILE) $(srcdir)/mech/gssapi.asn1 gssapi_asn1
282 $(srcdir)/krb5/gsskrb5-private.h:
283 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5/gsskrb5-private.h $(krb5src) || rm -f krb5/gsskrb5-private.h
285 $(srcdir)/spnego/spnego-private.h:
286 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p spnego/spnego-private.h $(spnegosrc) || rm -f spnego/spnego-private.h
289 TESTS = test_oid test_names test_cfx
292 test_cfx_SOURCES = krb5/test_cfx.c
294 check_PROGRAMS = test_acquire_cred $(TESTS)
296 bin_PROGRAMS = gsstool
297 noinst_PROGRAMS = test_cred test_kcred test_context test_ntlm
299 test_context_SOURCES = test_context.c test_common.c test_common.h
300 test_ntlm_SOURCES = test_ntlm.c test_common.c test_common.h
301 test_acquire_cred_SOURCES = test_acquire_cred.c test_common.c test_common.h
304 $(top_builddir)/lib/ntlm/libheimntlm.la \
307 LDADD = libgssapi.la \
308 $(top_builddir)/lib/krb5/libkrb5.la \
313 dist_gsstool_SOURCES = gsstool.c
314 nodist_gsstool_SOURCES = gss-commands.c gss-commands.h
316 gsstool_LDADD = libgssapi.la \
317 $(top_builddir)/lib/sl/libsl.la \
318 $(top_builddir)/lib/krb5/libkrb5.la \
322 gss-commands.c gss-commands.h: gss-commands.in
323 $(SLC) $(srcdir)/gss-commands.in
325 $(gsstool_OBJECTS): gss-commands.h
336 $(libgssapi_la_OBJECTS): gkrb5_err.h gssapi_asn1.h gssapi_asn1-priv.h
337 $(libgssapi_la_OBJECTS): spnego_asn1.h spnego_asn1-priv.h
338 $(libgssapi_la_OBJECTS): $(srcdir)/gssapi/gssapi_oid.h
340 gkrb5_err.h gkrb5_err.c: $(srcdir)/krb5/gkrb5_err.et
341 $(COMPILE_ET) $(srcdir)/krb5/gkrb5_err.et
343 $(srcdir)/gssapi/gssapi_oid.h $(srcdir)/mech/gss_oid.c:
344 perl $(srcdir)/gen-oid.pl -b base -h $(srcdir)/oid.txt > $(srcdir)/gssapi/gssapi_oid.h
345 perl $(srcdir)/gen-oid.pl -b base $(srcdir)/oid.txt > $(srcdir)/mech/gss_oid.c