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