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