1# $FreeBSD$ 2 3LIB= gssapi_spnego 4LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined 5LDADD= -lgssapi -lasn1 -lroken 6DPADD= ${LIBGSSAPI} ${LIBASN1} ${LIBROKEN} 7 8SRCS= accept_sec_context.c \ 9 compat.c \ 10 context_stubs.c \ 11 cred_stubs.c \ 12 external.c \ 13 init_sec_context.c \ 14 prefix.c \ 15 spnego_asn1.h \ 16 ${GEN:S/.x$/.c/} 17 18GEN= asn1_ContextFlags.x \ 19 asn1_MechType.x \ 20 asn1_MechTypeList.x \ 21 asn1_NegotiationToken.x \ 22 asn1_NegotiationTokenWin.x \ 23 asn1_NegHints.x \ 24 asn1_NegTokenInit.x \ 25 asn1_NegTokenInitWin.x \ 26 asn1_NegTokenResp.x 27 28CFLAGS+=-I${KRB5DIR}/lib/gssapi 29CFLAGS+=-I${KRB5DIR}/lib/asn1 30CFLAGS+=-I${KRB5DIR}/lib/roken -I. 31 32CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} spnego_asn1.h asn1_files 33 34.ORDER: ${GEN} spnego_asn1.h 35${GEN} spnego_asn1.h: spnego.asn1 ../../tools/asn1_compile/asn1_compile 36 ../../tools/asn1_compile/asn1_compile --sequence=MechTypeList ${.ALLSRC:M*.asn1} spnego_asn1 37 38../../tools/asn1_compile/asn1_compile: 39 cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE} 40 41.for I in ${GEN} 42${I:R}.c: ${I} 43 cat ${.ALLSRC} > ${.TARGET} 44.endfor 45 46.include <bsd.lib.mk> 47 48.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi 49