]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - kerberos5/lib/libgssapi_spnego/Makefile
Merge from vendor branch: update libpcap to 1.2.1.
[FreeBSD/FreeBSD.git] / kerberos5 / lib / libgssapi_spnego / Makefile
1 # $FreeBSD$
2
3 LIB=    gssapi_spnego
4 LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
5 LDADD=  -lgssapi -lheimbase -lasn1 -lroken
6 DPADD=  ${LIBGSSAPI} ${LIBHEIMBASE} ${LIBASN1} ${LIBROKEN}
7 SHLIB_MAJOR=    10
8
9 SRCS=   accept_sec_context.c \
10         compat.c \
11         context_stubs.c \
12         cred_stubs.c \
13         external.c \
14         init_sec_context.c \
15         freebsd_compat.c \
16         spnego-private.h \
17         spnego_locl.h \
18         spnego_asn1.h \
19         ${GEN:S/.x$/.c/:S/.hx$/.h/} \
20         gss_oid.c
21
22 GEN=    asn1_ContextFlags.x \
23         asn1_MechType.x \
24         asn1_MechTypeList.x \
25         asn1_NegotiationToken.x \
26         asn1_NegotiationTokenWin.x \
27         asn1_NegHints.x \
28         asn1_NegTokenInit.x \
29         asn1_NegTokenInitWin.x \
30         asn1_NegTokenResp.x \
31         spnego_asn1.hx \
32         spnego_asn1-priv.hx
33
34 CFLAGS+=-I${KRB5DIR}/lib/gssapi
35 CFLAGS+=-I${KRB5DIR}/lib/gssapi/gssapi
36 CFLAGS+=-I${KRB5DIR}/lib/gssapi/spnego
37 CFLAGS+=-I${KRB5DIR}/lib/asn1
38 CFLAGS+=-I${.CURDIR}/../../../lib/libgssapi
39 CFLAGS+=-I${KRB5DIR}/lib/roken -I.
40
41 CLEANFILES=     ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \
42                 spnego_asn1_files spnego_asn1-template.c
43
44 ASN1_COMPILE=   asn1_compile
45
46 ${GEN}: spnego.asn1 spnego.opt
47         ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
48                 ${.ALLSRC:M*.asn1} spnego_asn1
49
50 .SUFFIXES: .h .c .x .hx
51
52 .x.c:   
53         cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET}
54
55 .hx.h:
56         cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET}
57
58 .include <bsd.lib.mk>
59
60 .SUFFIXES: .h .c .x .hx
61
62 .PATH: ${KRB5DIR}/lib/gssapi/spnego ${.CURDIR}/../../../lib/libgssapi ${.CURDIR}/../libgssapi_krb5