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