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 41ASN1_COMPILE= asn1_compile 42 43${GEN}: spnego.asn1 spnego.opt 44 ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ 45 ${.ALLSRC:M*.asn1} spnego_asn1 46 47.SUFFIXES: .h .c .x .hx 48 49.x.c: 50 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 51 52.hx.h: 53 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 54 55.include <bsd.lib.mk> 56 57.SUFFIXES: .h .c .x .hx 58 59.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5 60