1# $FreeBSD$ 2 3LIB= gssapi_spnego 4LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined 5LDADD= -lgssapi -lheimbase -lasn1 -lroken 6DPADD= ${LIBGSSAPI} ${LIBHEIMBASE} ${LIBASN1} ${LIBROKEN} 7SHLIB_MAJOR= 10 8 9SRCS= accept_sec_context.c \ 10 compat.c \ 11 context_stubs.c \ 12 cred_stubs.c \ 13 external.c \ 14 init_sec_context.c \ 15 freebsd_compat.c \ 16 ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 17 gss_oid.c 18 19GEN= asn1_ContextFlags.x \ 20 asn1_MechType.x \ 21 asn1_MechTypeList.x \ 22 asn1_NegotiationToken.x \ 23 asn1_NegotiationTokenWin.x \ 24 asn1_NegHints.x \ 25 asn1_NegTokenInit.x \ 26 asn1_NegTokenInitWin.x \ 27 asn1_NegTokenResp.x \ 28 spnego_asn1.hx \ 29 spnego_asn1-priv.hx 30 31CFLAGS+=-I${KRB5DIR}/lib/gssapi 32CFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi 33CFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego 34CFLAGS+=-I${KRB5DIR}/lib/asn1 35CFLAGS+=-I${.CURDIR}/../../../lib/libgssapi 36CFLAGS+=-I${KRB5DIR}/lib/roken -I. 37 38CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 39 spnego_asn1_files spnego_asn1-template.c 40 41${GEN}: spnego.asn1 spnego.opt 42 ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ 43 ${.ALLSRC:M*.asn1} spnego_asn1 44 45.SUFFIXES: .h .c .x .hx 46 47.x.c: 48 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cat ${.IMPSRC} > ${.TARGET} 49 50.hx.h: 51 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cat ${.IMPSRC} > ${.TARGET} 52 53.include <bsd.lib.mk> 54 55.SUFFIXES: .h .c .x .hx 56 57.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5 58