]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/gssd/Makefile
zfs: merge openzfs/zfs@2e2a46e0a
[FreeBSD/FreeBSD.git] / usr.sbin / gssd / Makefile
1
2 .include <src.opts.mk>
3
4 PACKAGE=        kerberos
5
6 PROG=   gssd
7 MAN=    gssd.8
8 SRCS=   gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
9
10 CFLAGS+= -I.
11 WARNS?= 1
12
13 LIBADD= gssapi
14 .if ${MK_KERBEROS_SUPPORT} != "no"
15 LIBADD+=        krb5 roken
16 .else
17 CFLAGS+= -DWITHOUT_KERBEROS
18 .endif
19
20 CLEANFILES= gssd_svc.c gssd_xdr.c gssd.h
21
22 RPCSRC= ${SRCTOP}/sys/kgssapi/gssd.x
23 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
24
25 gssd_svc.c: ${RPCSRC} gssd.h
26         ${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
27
28 gssd_xdr.c: ${RPCSRC} gssd.h
29         ${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
30
31 gssd.h: ${RPCSRC}
32         ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
33
34 .PATH:  ${SRCTOP}/sys/kgssapi
35
36 .include <bsd.prog.mk>