xref: /freebsd/kerberos5/lib/libgssapi_spnego/Makefile (revision f0258c45f2a19f6315faf67f9f6385e78ef1dde8)
133f12199SDoug Rabson# $FreeBSD$
233f12199SDoug Rabson
333f12199SDoug RabsonLIB=	gssapi_spnego
4611ff617SStanislav SedovLDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
5ae771770SStanislav SedovLDADD=	-lgssapi -lheimbase -lasn1 -lroken
6ae771770SStanislav SedovDPADD=	${LIBGSSAPI} ${LIBHEIMBASE} ${LIBASN1} ${LIBROKEN}
7ae771770SStanislav SedovSHLIB_MAJOR=	10
833f12199SDoug Rabson
933f12199SDoug RabsonSRCS=	accept_sec_context.c \
1033f12199SDoug Rabson	compat.c \
1133f12199SDoug Rabson	context_stubs.c \
1233f12199SDoug Rabson	cred_stubs.c \
1333f12199SDoug Rabson	external.c \
1433f12199SDoug Rabson	init_sec_context.c \
15ae771770SStanislav Sedov	freebsd_compat.c \
16ae771770SStanislav Sedov	${GEN:S/.x$/.c/:S/.hx$/.h/} \
17ae771770SStanislav Sedov	gss_oid.c
1833f12199SDoug Rabson
1933f12199SDoug RabsonGEN=	asn1_ContextFlags.x \
2033f12199SDoug Rabson	asn1_MechType.x \
2133f12199SDoug Rabson	asn1_MechTypeList.x \
2233f12199SDoug Rabson	asn1_NegotiationToken.x \
2333f12199SDoug Rabson	asn1_NegotiationTokenWin.x \
2433f12199SDoug Rabson	asn1_NegHints.x \
2533f12199SDoug Rabson	asn1_NegTokenInit.x \
2633f12199SDoug Rabson	asn1_NegTokenInitWin.x \
27ae771770SStanislav Sedov	asn1_NegTokenResp.x \
28ae771770SStanislav Sedov	spnego_asn1.hx \
29ae771770SStanislav Sedov	spnego_asn1-priv.hx
3033f12199SDoug Rabson
3133f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/gssapi
32ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi
33ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego
3433f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/asn1
35ae771770SStanislav SedovCFLAGS+=-I${.CURDIR}/../../../lib/libgssapi
3633f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/roken -I.
3733f12199SDoug Rabson
38ae771770SStanislav SedovCLEANFILES=	${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \
39ae771770SStanislav Sedov		spnego_asn1_files spnego_asn1-template.c
4033f12199SDoug Rabson
41*f0258c45SPeter Wemm.ORDER: ${GEN}
42ae771770SStanislav Sedov${GEN}: spnego.asn1 spnego.opt
43ae771770SStanislav Sedov	${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
44ae771770SStanislav Sedov		${.ALLSRC:M*.asn1} spnego_asn1
4533f12199SDoug Rabson
46ae771770SStanislav Sedov.SUFFIXES: .h .c .x .hx
47ae771770SStanislav Sedov
48ae771770SStanislav Sedov.x.c:
49a5e863c9SPeter Wemm	cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cat ${.IMPSRC} > ${.TARGET}
50ae771770SStanislav Sedov
51ae771770SStanislav Sedov.hx.h:
52a5e863c9SPeter Wemm	cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cat ${.IMPSRC} > ${.TARGET}
5333f12199SDoug Rabson
5433f12199SDoug Rabson.include <bsd.lib.mk>
5533f12199SDoug Rabson
56ae771770SStanislav Sedov.SUFFIXES: .h .c .x .hx
57ae771770SStanislav Sedov
58ae771770SStanislav Sedov.PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5
59