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