Makefile.am revision 178825
1178825Sdfr# $Id: Makefile.am 22399 2008-01-11 14:25:47Z lha $ 255682Smarkm 355682Smarkminclude $(top_srcdir)/Makefile.am.common 455682Smarkm 5178825SdfrAUTOMAKE_OPTIONS = subdir-objects 655682Smarkm 7178825SdfrAM_CPPFLAGS += -I$(srcdir)/../krb5 \ 8178825Sdfr -I$(srcdir) \ 9178825Sdfr -I$(srcdir)/mech \ 10178825Sdfr $(INCLUDE_hcrypto) \ 11178825Sdfr $(INCLUDE_krb4) 12178825Sdfr 1355682Smarkmlib_LTLIBRARIES = libgssapi.la 1455682Smarkm 15178825Sdfrkrb5src = \ 16178825Sdfr krb5/8003.c \ 17178825Sdfr krb5/accept_sec_context.c \ 18178825Sdfr krb5/acquire_cred.c \ 19178825Sdfr krb5/add_cred.c \ 20178825Sdfr krb5/address_to_krb5addr.c \ 21178825Sdfr krb5/arcfour.c \ 22178825Sdfr krb5/canonicalize_name.c \ 23178825Sdfr krb5/ccache_name.c \ 24178825Sdfr krb5/cfx.c \ 25178825Sdfr krb5/cfx.h \ 26178825Sdfr krb5/compare_name.c \ 27178825Sdfr krb5/compat.c \ 28178825Sdfr krb5/context_time.c \ 29178825Sdfr krb5/copy_ccache.c \ 30178825Sdfr krb5/decapsulate.c \ 31178825Sdfr krb5/delete_sec_context.c \ 32178825Sdfr krb5/display_name.c \ 33178825Sdfr krb5/display_status.c \ 34178825Sdfr krb5/duplicate_name.c \ 35178825Sdfr krb5/encapsulate.c \ 36178825Sdfr krb5/export_name.c \ 37178825Sdfr krb5/export_sec_context.c \ 38178825Sdfr krb5/external.c \ 39178825Sdfr krb5/get_mic.c \ 40178825Sdfr krb5/gsskrb5_locl.h \ 41178825Sdfr krb5/gsskrb5-private.h \ 42178825Sdfr krb5/import_name.c \ 43178825Sdfr krb5/import_sec_context.c \ 44178825Sdfr krb5/indicate_mechs.c \ 45178825Sdfr krb5/init.c \ 46178825Sdfr krb5/init_sec_context.c \ 47178825Sdfr krb5/inquire_context.c \ 48178825Sdfr krb5/inquire_cred.c \ 49178825Sdfr krb5/inquire_cred_by_mech.c \ 50178825Sdfr krb5/inquire_cred_by_oid.c \ 51178825Sdfr krb5/inquire_mechs_for_name.c \ 52178825Sdfr krb5/inquire_names_for_mech.c \ 53178825Sdfr krb5/inquire_sec_context_by_oid.c \ 54178825Sdfr krb5/process_context_token.c \ 55178825Sdfr krb5/prf.c \ 56178825Sdfr krb5/release_buffer.c \ 57178825Sdfr krb5/release_cred.c \ 58178825Sdfr krb5/release_name.c \ 59178825Sdfr krb5/sequence.c \ 60178825Sdfr krb5/set_cred_option.c \ 61178825Sdfr krb5/set_sec_context_option.c \ 62178825Sdfr krb5/ticket_flags.c \ 63178825Sdfr krb5/unwrap.c \ 64178825Sdfr krb5/v1.c \ 65178825Sdfr krb5/verify_mic.c \ 66178825Sdfr krb5/wrap.c 67120945Snectar 68178825Sdfrmechsrc = \ 69178825Sdfr mech/context.h \ 70178825Sdfr mech/context.c \ 71178825Sdfr mech/cred.h \ 72178825Sdfr mech/gss_accept_sec_context.c \ 73178825Sdfr mech/gss_acquire_cred.c \ 74178825Sdfr mech/gss_add_cred.c \ 75178825Sdfr mech/gss_add_oid_set_member.c \ 76178825Sdfr mech/gss_buffer_set.c \ 77178825Sdfr mech/gss_canonicalize_name.c \ 78178825Sdfr mech/gss_compare_name.c \ 79178825Sdfr mech/gss_context_time.c \ 80178825Sdfr mech/gss_create_empty_oid_set.c \ 81178825Sdfr mech/gss_decapsulate_token.c \ 82178825Sdfr mech/gss_delete_sec_context.c \ 83178825Sdfr mech/gss_display_name.c \ 84178825Sdfr mech/gss_display_status.c \ 85178825Sdfr mech/gss_duplicate_name.c \ 86178825Sdfr mech/gss_duplicate_oid.c \ 87178825Sdfr mech/gss_encapsulate_token.c \ 88178825Sdfr mech/gss_export_name.c \ 89178825Sdfr mech/gss_export_sec_context.c \ 90178825Sdfr mech/gss_get_mic.c \ 91178825Sdfr mech/gss_import_name.c \ 92178825Sdfr mech/gss_import_sec_context.c \ 93178825Sdfr mech/gss_indicate_mechs.c \ 94178825Sdfr mech/gss_init_sec_context.c \ 95178825Sdfr mech/gss_inquire_context.c \ 96178825Sdfr mech/gss_inquire_cred.c \ 97178825Sdfr mech/gss_inquire_cred_by_mech.c \ 98178825Sdfr mech/gss_inquire_cred_by_oid.c \ 99178825Sdfr mech/gss_inquire_mechs_for_name.c \ 100178825Sdfr mech/gss_inquire_names_for_mech.c \ 101178825Sdfr mech/gss_krb5.c \ 102178825Sdfr mech/gss_mech_switch.c \ 103178825Sdfr mech/gss_names.c \ 104178825Sdfr mech/gss_oid_equal.c \ 105178825Sdfr mech/gss_oid_to_str.c \ 106178825Sdfr mech/gss_process_context_token.c \ 107178825Sdfr mech/gss_pseudo_random.c \ 108178825Sdfr mech/gss_release_buffer.c \ 109178825Sdfr mech/gss_release_cred.c \ 110178825Sdfr mech/gss_release_name.c \ 111178825Sdfr mech/gss_release_oid.c \ 112178825Sdfr mech/gss_release_oid_set.c \ 113178825Sdfr mech/gss_seal.c \ 114178825Sdfr mech/gss_set_cred_option.c \ 115178825Sdfr mech/gss_set_sec_context_option.c \ 116178825Sdfr mech/gss_sign.c \ 117178825Sdfr mech/gss_test_oid_set_member.c \ 118178825Sdfr mech/gss_unseal.c \ 119178825Sdfr mech/gss_unwrap.c \ 120178825Sdfr mech/gss_utils.c \ 121178825Sdfr mech/gss_verify.c \ 122178825Sdfr mech/gss_verify_mic.c \ 123178825Sdfr mech/gss_wrap.c \ 124178825Sdfr mech/gss_wrap_size_limit.c \ 125178825Sdfr mech/gss_inquire_sec_context_by_oid.c \ 126178825Sdfr mech/mech_switch.h \ 127178825Sdfr mech/mechqueue.h \ 128178825Sdfr mech/mech_locl.h \ 129178825Sdfr mech/name.h \ 130178825Sdfr mech/utils.h 131178825Sdfr 132178825Sdfrspnegosrc = \ 133178825Sdfr spnego/accept_sec_context.c \ 134178825Sdfr spnego/compat.c \ 135178825Sdfr spnego/context_stubs.c \ 136178825Sdfr spnego/cred_stubs.c \ 137178825Sdfr spnego/external.c \ 138178825Sdfr spnego/init_sec_context.c \ 139178825Sdfr spnego/spnego_locl.h \ 140178825Sdfr spnego/spnego-private.h 141178825Sdfr 142178825Sdfrntlmsrc = \ 143178825Sdfr ntlm/accept_sec_context.c \ 144178825Sdfr ntlm/acquire_cred.c \ 145178825Sdfr ntlm/add_cred.c \ 146178825Sdfr ntlm/canonicalize_name.c \ 147178825Sdfr ntlm/compare_name.c \ 148178825Sdfr ntlm/context_time.c \ 149178825Sdfr ntlm/crypto.c \ 150178825Sdfr ntlm/delete_sec_context.c \ 151178825Sdfr ntlm/display_name.c \ 152178825Sdfr ntlm/display_status.c \ 153178825Sdfr ntlm/duplicate_name.c \ 154178825Sdfr ntlm/export_name.c \ 155178825Sdfr ntlm/export_sec_context.c \ 156178825Sdfr ntlm/external.c \ 157178825Sdfr ntlm/ntlm.h \ 158178825Sdfr ntlm/ntlm-private.h \ 159178825Sdfr ntlm/import_name.c \ 160178825Sdfr ntlm/import_sec_context.c \ 161178825Sdfr ntlm/indicate_mechs.c \ 162178825Sdfr ntlm/init_sec_context.c \ 163178825Sdfr ntlm/inquire_context.c \ 164178825Sdfr ntlm/inquire_cred.c \ 165178825Sdfr ntlm/inquire_cred_by_mech.c \ 166178825Sdfr ntlm/inquire_mechs_for_name.c \ 167178825Sdfr ntlm/inquire_names_for_mech.c \ 168178825Sdfr ntlm/process_context_token.c \ 169178825Sdfr ntlm/release_cred.c \ 170178825Sdfr ntlm/release_name.c \ 171178825Sdfr ntlm/digest.c 172178825Sdfr 173178825Sdfr$(srcdir)/ntlm/ntlm-private.h: 174178825Sdfr cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p ntlm/ntlm-private.h $(ntlmsrc) || rm -f ntlm/ntlm-private.h 175178825Sdfr 176178825Sdfrdist_libgssapi_la_SOURCES = \ 177178825Sdfr $(krb5src) \ 178178825Sdfr $(mechsrc) \ 179178825Sdfr $(ntlmsrc) \ 180178825Sdfr $(spnegosrc) 181178825Sdfr 182178825Sdfrnodist_libgssapi_la_SOURCES = \ 183178825Sdfr gkrb5_err.c \ 184178825Sdfr gkrb5_err.h \ 185178825Sdfr $(BUILT_SOURCES) 186178825Sdfr 187178825Sdfrlibgssapi_la_LDFLAGS = -version-info 2:0:0 188178825Sdfr 189178825Sdfrif versionscript 190178825Sdfrlibgssapi_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map 191178825Sdfrendif 192178825Sdfr 193178825Sdfrlibgssapi_la_LIBADD = \ 194178825Sdfr $(top_builddir)/lib/ntlm/libheimntlm.la \ 195178825Sdfr $(top_builddir)/lib/krb5/libkrb5.la \ 196178825Sdfr $(top_builddir)/lib/asn1/libasn1.la \ 197178825Sdfr $(LIB_com_err) \ 198178825Sdfr $(LIB_hcrypto) \ 199178825Sdfr $(LIBADD_roken) 200178825Sdfr 201178825Sdfrman_MANS = gssapi.3 gss_acquire_cred.3 mech/mech.5 202178825Sdfr 20355682Smarkminclude_HEADERS = gssapi.h 204178825Sdfrnoinst_HEADERS = \ 205178825Sdfr gssapi_mech.h \ 206178825Sdfr ntlm/ntlm-private.h \ 207178825Sdfr spnego/spnego-private.h \ 208178825Sdfr krb5/gsskrb5-private.h 209178825Sdfrnobase_include_HEADERS = \ 210178825Sdfr gssapi/gssapi.h \ 211178825Sdfr gssapi/gssapi_krb5.h \ 212178825Sdfr gssapi/gssapi_spnego.h 21355682Smarkm 214178825Sdfrgssapidir = $(includedir)/gssapi 215178825Sdfrnodist_gssapi_HEADERS = gkrb5_err.h 216120945Snectar 217178825Sdfrgssapi_files = asn1_GSSAPIContextToken.x 218120945Snectar 219178825Sdfrspnego_files = \ 220178825Sdfr asn1_ContextFlags.x \ 221178825Sdfr asn1_MechType.x \ 222178825Sdfr asn1_MechTypeList.x \ 223178825Sdfr asn1_NegotiationToken.x \ 224178825Sdfr asn1_NegotiationTokenWin.x \ 225178825Sdfr asn1_NegHints.x \ 226178825Sdfr asn1_NegTokenInit.x \ 227178825Sdfr asn1_NegTokenInitWin.x \ 228178825Sdfr asn1_NegTokenResp.x 229120945Snectar 230178825Sdfr$(libgssapi_la_OBJECTS): $(srcdir)/krb5/gsskrb5-private.h 231178825Sdfr$(libgssapi_la_OBJECTS): $(srcdir)/spnego/spnego-private.h 232178825Sdfr$(libgssapi_la_OBJECTS): $(srcdir)/ntlm/ntlm-private.h 233178825Sdfr 234178825Sdfr$(libgssapi_la_OBJECTS): $(srcdir)/version-script.map 235178825Sdfr 236178825SdfrBUILT_SOURCES = $(spnego_files:.x=.c) $(gssapi_files:.x=.c) 237178825Sdfr 238178825SdfrCLEANFILES = $(BUILT_SOURCES) \ 239178825Sdfr gkrb5_err.h gkrb5_err.c \ 240178825Sdfr $(spnego_files) spnego_asn1.h spnego_asn1_files \ 241178825Sdfr $(gssapi_files) gssapi_asn1.h gssapi_asn1_files \ 242178825Sdfr gss-commands.h gss-commands.c 243178825Sdfr 244178825Sdfr$(spnego_files) spnego_asn1.h: spnego_asn1_files 245178825Sdfr$(gssapi_files) gssapi_asn1.h: gssapi_asn1_files 246178825Sdfr 247178825Sdfrspnego_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/spnego/spnego.asn1 248178825Sdfr ../asn1/asn1_compile$(EXEEXT) --sequence=MechTypeList $(srcdir)/spnego/spnego.asn1 spnego_asn1 249178825Sdfr 250178825Sdfrgssapi_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/mech/gssapi.asn1 251178825Sdfr ../asn1/asn1_compile$(EXEEXT) $(srcdir)/mech/gssapi.asn1 gssapi_asn1 252178825Sdfr 253178825Sdfr$(srcdir)/krb5/gsskrb5-private.h: 254178825Sdfr cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5/gsskrb5-private.h $(krb5src) || rm -f krb5/gsskrb5-private.h 255178825Sdfr 256178825Sdfr$(srcdir)/spnego/spnego-private.h: 257178825Sdfr cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p spnego/spnego-private.h $(spnegosrc) || rm -f spnego/spnego-private.h 258178825Sdfr 259178825Sdfr 260178825SdfrTESTS = test_oid test_names test_cfx 261178825Sdfr# test_sequence 262178825Sdfr 263178825Sdfrtest_cfx_SOURCES = krb5/test_cfx.c 264178825Sdfr 265178825Sdfrcheck_PROGRAMS = test_acquire_cred $(TESTS) 266178825Sdfr 267178825Sdfrbin_PROGRAMS = gss 268178825Sdfrnoinst_PROGRAMS = test_cred test_kcred test_context test_ntlm 269178825Sdfr 270178825Sdfrtest_context_SOURCES = test_context.c test_common.c test_common.h 271178825Sdfrtest_ntlm_SOURCES = test_ntlm.c test_common.c test_common.h 272178825Sdfrtest_acquire_cred_SOURCES = test_acquire_cred.c test_common.c test_common.h 273178825Sdfr 274178825Sdfrtest_ntlm_LDADD = \ 275178825Sdfr $(top_builddir)/lib/ntlm/libheimntlm.la \ 276178825Sdfr $(LDADD) 277178825Sdfr 278178825SdfrLDADD = libgssapi.la \ 279178825Sdfr $(top_builddir)/lib/krb5/libkrb5.la \ 280178825Sdfr $(LIB_roken) 281178825Sdfr 282178825Sdfr# gss 283178825Sdfr 284178825Sdfrdist_gss_SOURCES = gss.c 285178825Sdfrnodist_gss_SOURCES = gss-commands.c gss-commands.h 286178825Sdfr 287178825Sdfrgss_LDADD = libgssapi.la \ 288178825Sdfr $(top_builddir)/lib/sl/libsl.la \ 289178825Sdfr $(top_builddir)/lib/krb5/libkrb5.la \ 290178825Sdfr $(LIB_readline) \ 291178825Sdfr $(LIB_roken) 292178825Sdfr 293178825SdfrSLC = $(top_builddir)/lib/sl/slc 294178825Sdfr 295178825Sdfrgss-commands.c gss-commands.h: gss-commands.in 296178825Sdfr $(SLC) $(srcdir)/gss-commands.in 297178825Sdfr 298178825Sdfr$(gss_OBJECTS): gss-commands.h 299178825Sdfr 300178825SdfrEXTRA_DIST = \ 301178825Sdfr $(man_MANS) \ 302178825Sdfr krb5/gkrb5_err.et \ 303178825Sdfr mech/gssapi.asn1 \ 304178825Sdfr spnego/spnego.asn1 \ 305178825Sdfr version-script.map \ 306178825Sdfr gss-commands.in 307178825Sdfr 308178825Sdfr# to help stupid solaris make 309178825Sdfr 310178825Sdfr$(libgssapi_la_OBJECTS): gkrb5_err.h gssapi_asn1.h spnego_asn1.h 311178825Sdfr 312178825Sdfrgkrb5_err.h gkrb5_err.c: $(srcdir)/krb5/gkrb5_err.et 313178825Sdfr $(COMPILE_ET) $(srcdir)/krb5/gkrb5_err.et 314