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