133f12199SDoug Rabson# $FreeBSD$ 233f12199SDoug Rabson 333f12199SDoug RabsonLIB= gssapi_spnego 4*611ff617SStanislav SedovLDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined 5*611ff617SStanislav SedovLDADD= -lgssapi -lasn1 -lroken 6*611ff617SStanislav SedovDPADD= ${LIBGSSAPI} ${LIBASN1} ${LIBROKEN} 733f12199SDoug Rabson 833f12199SDoug RabsonSRCS= accept_sec_context.c \ 933f12199SDoug Rabson compat.c \ 1033f12199SDoug Rabson context_stubs.c \ 1133f12199SDoug Rabson cred_stubs.c \ 1233f12199SDoug Rabson external.c \ 1333f12199SDoug Rabson init_sec_context.c \ 1433f12199SDoug Rabson prefix.c \ 1533f12199SDoug Rabson spnego_asn1.h \ 1633f12199SDoug Rabson ${GEN:S/.x$/.c/} 1733f12199SDoug Rabson 1833f12199SDoug RabsonGEN= asn1_ContextFlags.x \ 1933f12199SDoug Rabson asn1_MechType.x \ 2033f12199SDoug Rabson asn1_MechTypeList.x \ 2133f12199SDoug Rabson asn1_NegotiationToken.x \ 2233f12199SDoug Rabson asn1_NegotiationTokenWin.x \ 2333f12199SDoug Rabson asn1_NegHints.x \ 2433f12199SDoug Rabson asn1_NegTokenInit.x \ 2533f12199SDoug Rabson asn1_NegTokenInitWin.x \ 2633f12199SDoug Rabson asn1_NegTokenResp.x 2733f12199SDoug Rabson 2833f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/gssapi 2933f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/asn1 3033f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/roken -I. 3133f12199SDoug Rabson 3233f12199SDoug RabsonCLEANFILES= ${GEN} ${GEN:S/.x$/.c/} spnego_asn1.h asn1_files 3333f12199SDoug Rabson 3433f12199SDoug Rabson.ORDER: ${GEN} spnego_asn1.h 3533f12199SDoug Rabson${GEN} spnego_asn1.h: spnego.asn1 ../../tools/asn1_compile/asn1_compile 3633f12199SDoug Rabson ../../tools/asn1_compile/asn1_compile --sequence=MechTypeList ${.ALLSRC:M*.asn1} spnego_asn1 3733f12199SDoug Rabson 3833f12199SDoug Rabson../../tools/asn1_compile/asn1_compile: 3933f12199SDoug Rabson cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE} 4033f12199SDoug Rabson 4133f12199SDoug Rabson.for I in ${GEN} 4233f12199SDoug Rabson${I:R}.c: ${I} 4333f12199SDoug Rabson cat ${.ALLSRC} > ${.TARGET} 4433f12199SDoug Rabson.endfor 4533f12199SDoug Rabson 4633f12199SDoug Rabson.include <bsd.lib.mk> 4733f12199SDoug Rabson 4833f12199SDoug Rabson.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi 49