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