10SN/A# $FreeBSD$ 21472SN/A 30SN/A.PATH: ${.CURDIR}/../../usr.sbin/ypserv 40SN/A 50SN/APROG= rpc.ypxfrd 60SN/AMAN= rpc.ypxfrd.8 70SN/ASRCS= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \ 80SN/A yp_access.c ypxfrd_main.c 90SN/A 100SN/ACFLAGS+= -I. -DXFRBLOCKSIZE=65535 110SN/A 120SN/AWARNS?= 2 130SN/A 140SN/ADPADD= ${LIBRPCSVC} 150SN/ALDADD= -lrpcsvc 160SN/A 170SN/ACLEANFILES= ypxfrd_svc.c ypxfrd.h 180SN/A 191472SN/ARPCDIR= ${.CURDIR}/../../include/rpcsvc 201472SN/ARPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C 211472SN/A 220SN/A# We need to remove the 'static' keyword from _rpcsvcstate so that 230SN/A# ypxfrd_main.c can see it. 240SN/Aypxfrd_svc.c: ${RPCDIR}/ypxfrd.x 250SN/A rm -f ${.TARGET} 260SN/A ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \ 270SN/A sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET} 280SN/A 290SN/A# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x 300SN/A# rm -f ${.TARGET} 310SN/A# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x 320SN/A 330SN/Aypxfrd.h: ${RPCDIR}/ypxfrd.x 340SN/A rm -f ${.TARGET} 350SN/A ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x 360SN/A 370SN/A.include <bsd.prog.mk> 380SN/A