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