xref: /freebsd/kerberos5/lib/libgssapi_spnego/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1*6e4dbb7fSDoug RabsonPACKAGE=	kerberos-lib
2a30235a4SEmmanuel Vadot
333f12199SDoug RabsonLIB=	gssapi_spnego
4611ff617SStanislav SedovLDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
5d65af1e7SBaptiste DaroussinLIBADD=	gssapi heimbase asn1 roken
6ae771770SStanislav SedovSHLIB_MAJOR=	10
733f12199SDoug Rabson
833f12199SDoug RabsonSRCS=	accept_sec_context.c \
933f12199SDoug Rabson	compat.c \
1033f12199SDoug Rabson	context_stubs.c \
1133f12199SDoug Rabson	cred_stubs.c \
1233f12199SDoug Rabson	external.c \
1333f12199SDoug Rabson	init_sec_context.c \
14ae771770SStanislav Sedov	freebsd_compat.c \
15ae771770SStanislav Sedov	${GEN:S/.x$/.c/:S/.hx$/.h/} \
16ae771770SStanislav Sedov	gss_oid.c
1733f12199SDoug Rabson
1833f12199SDoug RabsonGEN=	asn1_ContextFlags.x \
1933f12199SDoug Rabson	asn1_MechType.x \
2033f12199SDoug Rabson	asn1_MechTypeList.x \
2133f12199SDoug Rabson	asn1_NegotiationToken.x \
2233f12199SDoug Rabson	asn1_NegotiationTokenWin.x \
2333f12199SDoug Rabson	asn1_NegHints.x \
2433f12199SDoug Rabson	asn1_NegTokenInit.x \
2533f12199SDoug Rabson	asn1_NegTokenInitWin.x \
26ae771770SStanislav Sedov	asn1_NegTokenResp.x \
27ae771770SStanislav Sedov	spnego_asn1.hx \
28ae771770SStanislav Sedov	spnego_asn1-priv.hx
2933f12199SDoug Rabson
3033f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/gssapi
31ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi
32ae771770SStanislav SedovCFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego
3333f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/asn1
344c3e79ceSEnji CooperCFLAGS+=-I${SRCTOP}/lib/libgssapi
3533f12199SDoug RabsonCFLAGS+=-I${KRB5DIR}/lib/roken -I.
3633f12199SDoug Rabson
37ae771770SStanislav SedovCLEANFILES=	${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \
38ae771770SStanislav Sedov		spnego_asn1_files spnego_asn1-template.c
3933f12199SDoug Rabson
40f0258c45SPeter Wemm.ORDER: ${GEN}
4192edc966SBryan Drewery${GEN:[2..-1]}: .NOMETA
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:
497a37b5fcSWill Andrews	${CP} ${.IMPSRC} ${.TARGET}
50ae771770SStanislav Sedov
51ae771770SStanislav Sedov.hx.h:
527a37b5fcSWill Andrews	${CP} ${.IMPSRC} ${.TARGET}
5333f12199SDoug Rabson
5433f12199SDoug Rabson.include <bsd.lib.mk>
5533f12199SDoug Rabson
56ae771770SStanislav Sedov.SUFFIXES: .h .c .x .hx
57ae771770SStanislav Sedov
584c3e79ceSEnji Cooper.PATH: ${KRB5DIR}/lib/gssapi/spnego ${SRCTOP}/lib/libgssapi ${.CURDIR:H}/libgssapi_krb5
59