3 RPCDIR= ${.CURDIR}/../../include/rpcsvc
8 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
9 ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c
11 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
18 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
20 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
22 # We need to remove the 'static' keyword from _rpcsvcstate so that
23 # yp_main.c can see it.
26 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
27 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
30 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
33 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
36 FILESNAME= Makefile.dist
40 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
41 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
44 .include <bsd.prog.mk>