freebsd-dev/usr.sbin/gssd/Makefile
Enji Cooper 64a0982bee usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output

MFC after:	1 month
Sponsored by:	Dell EMC Isilon
2017-03-04 11:38:03 +00:00

36 lines
621 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PROG= gssd
MAN= gssd.8
SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
CFLAGS+= -I.
WARNS?= 1
LIBADD= gssapi
.if ${MK_KERBEROS_SUPPORT} != "no"
LIBADD+= krb5 roken
.else
CFLAGS+= -DWITHOUT_KERBEROS
.endif
CLEANFILES= gssd_svc.c gssd_xdr.c gssd.h
RPCSRC= ${SRCTOP}/sys/kgssapi/gssd.x
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
gssd_svc.c: ${RPCSRC} gssd.h
${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
gssd_xdr.c: ${RPCSRC} gssd.h
${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
gssd.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
.PATH: ${SRCTOP}/sys/kgssapi
.include <bsd.prog.mk>