xref: /freebsd/usr.sbin/yppush/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1RPCDIR=	${SRCTOP}/include/rpcsvc
2.PATH: ${RPCDIR} ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr
3
4PACKAGE=	yp
5PROG=	yppush
6MAN=	yppush.8
7SRCS=	ypxfr_getmap.c yp_dblookup.c yp_error.c ypxfr_misc.c yppush_main.c \
8	${GENSRCS}
9GENSRCS=yp.h yp_clnt.c yppush_svc.c
10
11CFLAGS+= -I. -I${SRCTOP}/libexec/ypxfr
12
13WARNS?=	2
14
15RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -C
16
17CLEANFILES= ${GENSRCS}
18
19yppush_svc.c: yp.x
20	${RPCGEN} -DYPPUSH_ONLY -m -o ${.TARGET} ${RPCDIR}/yp.x
21
22yp_clnt.c: yp.x
23	${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
24
25yp.h: yp.x
26	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
27
28.include <bsd.prog.mk>
29