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 spnego-private.h \ 17 spnego_locl.h \ 18 spnego_asn1.h \ 19 ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 20 gss_oid.c 21 22GEN= asn1_ContextFlags.x \ 23 asn1_MechType.x \ 24 asn1_MechTypeList.x \ 25 asn1_NegotiationToken.x \ 26 asn1_NegotiationTokenWin.x \ 27 asn1_NegHints.x \ 28 asn1_NegTokenInit.x \ 29 asn1_NegTokenInitWin.x \ 30 asn1_NegTokenResp.x \ 31 spnego_asn1.hx \ 32 spnego_asn1-priv.hx 33 34CFLAGS+=-I${KRB5DIR}/lib/gssapi 35CFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi 36CFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego 37CFLAGS+=-I${KRB5DIR}/lib/asn1 38CFLAGS+=-I${.CURDIR}/../../../lib/libgssapi 39CFLAGS+=-I${KRB5DIR}/lib/roken -I. 40 41CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 42 spnego_asn1_files spnego_asn1-template.c 43 44ASN1_COMPILE= asn1_compile 45 46${GEN}: spnego.asn1 spnego.opt 47 ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ 48 ${.ALLSRC:M*.asn1} spnego_asn1 49 50.SUFFIXES: .h .c .x .hx 51 52.x.c: 53 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 54 55.hx.h: 56 cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} 57 58.include <bsd.lib.mk> 59 60.SUFFIXES: .h .c .x .hx 61 62.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5 63