]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - kerberos5/lib/libgssapi_spnego/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / kerberos5 / lib / libgssapi_spnego / Makefile
1 # $FreeBSD$
2
3 LIB=    gssapi_spnego
4 LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
5 LDADD=  -lgssapi -lasn1 -lroken
6 DPADD=  ${LIBGSSAPI} ${LIBASN1} ${LIBROKEN}
7
8 SRCS=   accept_sec_context.c \
9         compat.c \
10         context_stubs.c \
11         cred_stubs.c \
12         external.c \
13         init_sec_context.c \
14         prefix.c \
15         spnego_asn1.h \
16         ${GEN:S/.x$/.c/}
17
18 GEN=    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
28 CFLAGS+=-I${KRB5DIR}/lib/gssapi
29 CFLAGS+=-I${KRB5DIR}/lib/asn1
30 CFLAGS+=-I${KRB5DIR}/lib/roken -I.
31
32 CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} spnego_asn1.h asn1_files
33
34 .ORDER: ${GEN} spnego_asn1.h
35 ${GEN} spnego_asn1.h: spnego.asn1 ../../tools/asn1_compile/asn1_compile
36         ../../tools/asn1_compile/asn1_compile --sequence=MechTypeList ${.ALLSRC:M*.asn1} spnego_asn1
37
38 ../../tools/asn1_compile/asn1_compile:
39         cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
40
41 .for I in ${GEN}
42 ${I:R}.c: ${I}
43         cat ${.ALLSRC} > ${.TARGET}
44 .endfor
45
46 .include <bsd.lib.mk>
47
48 .PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi