133f12199SDoug Rabson# $FreeBSD$ 233f12199SDoug Rabson 333f12199SDoug RabsonLIB= gssapi_spnego 4611ff617SStanislav SedovLDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined 5*ae771770SStanislav SedovLDADD= -lgssapi -lheimbase -lasn1 -lroken 6*ae771770SStanislav SedovDPADD= ${LIBGSSAPI} ${LIBHEIMBASE} ${LIBASN1} ${LIBROKEN} 7*ae771770SStanislav SedovSHLIB_MAJOR= 10 833f12199SDoug Rabson 933f12199SDoug RabsonSRCS= accept_sec_context.c \ 1033f12199SDoug Rabson compat.c \ 1133f12199SDoug Rabson context_stubs.c \ 1233f12199SDoug Rabson cred_stubs.c \ 1333f12199SDoug Rabson external.c \ 1433f12199SDoug Rabson init_sec_context.c \ 15*ae771770SStanislav Sedov freebsd_compat.c \ 16*ae771770SStanislav Sedov spnego-private.h \ 17*ae771770SStanislav Sedov spnego_locl.h \ 1833f12199SDoug Rabson spnego_asn1.h \ 19*ae771770SStanislav Sedov ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 20*ae771770SStanislav Sedov gss_oid.c 2133f12199SDoug Rabson 2233f12199SDoug RabsonGEN= asn1_ContextFlags.x \ 2333f12199SDoug Rabson asn1_MechType.x \ 2433f12199SDoug Rabson asn1_MechTypeList.x \ 2533f12199SDoug Rabson asn1_NegotiationToken.x \ 2633f12199SDoug Rabson asn1_NegotiationTokenWin.x \ 2733f12199SDoug Rabson asn1_NegHints.x \ 2833f12199SDoug Rabson asn1_NegTokenInit.x \ 2933f12199SDoug Rabson asn1_NegTokenInitWin.x \ 30*ae771770SStanislav Sedov asn1_NegTokenResp.x \ 31*ae771770SStanislav Sedov spnego_asn1.hx \ 32*ae771770SStanislav Sedov spnego_asn1-priv.hx 3333f12199SDoug Rabson 3433f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/gssapi 35*ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi 36*ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego 3733f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/asn1 38*ae771770SStanislav SedovCFLAGS+=-I${.CURDIR}/../../../lib/libgssapi 3933f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/roken -I. 4033f12199SDoug Rabson 41*ae771770SStanislav SedovCLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 42*ae771770SStanislav Sedov spnego_asn1_files spnego_asn1-template.c 4333f12199SDoug Rabson 44*ae771770SStanislav SedovASN1_COMPILE= asn1_compile 4533f12199SDoug Rabson 46*ae771770SStanislav Sedov${GEN}: spnego.asn1 spnego.opt 47*ae771770SStanislav Sedov ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ 48*ae771770SStanislav Sedov ${.ALLSRC:M*.asn1} spnego_asn1 4933f12199SDoug Rabson 50*ae771770SStanislav Sedov.SUFFIXES: .h .c .x .hx 51*ae771770SStanislav Sedov 52*ae771770SStanislav Sedov.x.c: 53*ae771770SStanislav Sedov cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 54*ae771770SStanislav Sedov 55*ae771770SStanislav Sedov.hx.h: 56*ae771770SStanislav Sedov cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 5733f12199SDoug Rabson 5833f12199SDoug Rabson.include <bsd.lib.mk> 5933f12199SDoug Rabson 60*ae771770SStanislav Sedov.SUFFIXES: .h .c .x .hx 61*ae771770SStanislav Sedov 62*ae771770SStanislav Sedov.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5 63