3 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
7 SRCS= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \
8 yp_access.c ypxfrd_main.c
10 CFLAGS+= -I. -DXFRBLOCKSIZE=65535
17 CLEANFILES= ypxfrd_svc.c ypxfrd.h
19 RPCDIR= ${.CURDIR}/../../include/rpcsvc
20 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
22 # We need to remove the 'static' keyword from _rpcsvcstate so that
23 # ypxfrd_main.c can see it.
24 ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
26 ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
27 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
29 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
31 # ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
33 ypxfrd.h: ${RPCDIR}/ypxfrd.x
35 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
37 .include <bsd.prog.mk>