1# $Id$ 2 3PROG= ypxfr 4SRCS= ypxfr_clnt.c yp_clnt.c ypxfr_getmap.c yp_dblookup.c \ 5 yp_error.c ypxfr_misc.c ypxfr_main.c yp_dbwrite.c \ 6 ypxfrd_getmap.c 7 8.PATH: ${.CURDIR}/../../usr.sbin/ypserv 9 10MAN8= ypxfr.8 11 12CFLAGS+= -I. 13DPADD= ${LIBRPCSVC} 14LDADD= -lrpcsvc 15 16CLEANFILES= yp.h yp_clnt.c ypxfr_clnt.c 17 18RPCDIR= ${.CURDIR}/../../include/rpcsvc 19RPCGEN= rpcgen -I -C 20 21ypxfr_clnt.c: ${RPCDIR}/yp.x yp.h 22 rm -f ${.TARGET} 23 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 24 25yp_clnt.c: ${RPCDIR}/yp.x yp.h 26 rm -f ${.TARGET} 27 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 28 29yp.h: ${RPCDIR}/yp.x 30 rm -f ${.TARGET} 31 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 32 33# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x ypxfrd.h 34# rm -f ${.TARGET} 35# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x 36 37ypxfrd.h: ${RPCDIR}/ypxfrd.x 38 rm -f ${.TARGET} 39 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x 40 41.include <bsd.prog.mk> 42