1# $FreeBSD$ 2 3LIB= gssapi_spnego 4LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined 5LIBADD= gssapi heimbase asn1 roken 6SHLIB_MAJOR= 10 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 freebsd_compat.c \ 15 ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 16 gss_oid.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 spnego_asn1.hx \ 28 spnego_asn1-priv.hx 29 30CFLAGS+=-I${KRB5DIR}/lib/gssapi 31CFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi 32CFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego 33CFLAGS+=-I${KRB5DIR}/lib/asn1 34CFLAGS+=-I${.CURDIR}/../../../lib/libgssapi 35CFLAGS+=-I${KRB5DIR}/lib/roken -I. 36 37CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \ 38 spnego_asn1_files spnego_asn1-template.c 39 40.ORDER: ${GEN} 41${GEN:[2..-1]}: .NOMETA 42${GEN}: spnego.asn1 spnego.opt 43 ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ 44 ${.ALLSRC:M*.asn1} spnego_asn1 45 46.SUFFIXES: .h .c .x .hx 47 48.x.c: 49 ${CP} ${.IMPSRC} ${.TARGET} 50 51.hx.h: 52 ${CP} ${.IMPSRC} ${.TARGET} 53 54.include <bsd.lib.mk> 55 56.SUFFIXES: .h .c .x .hx 57 58.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5 59