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.
16 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
18 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
20 # We need to remove the 'static' keyword from _rpcsvcstate so that
21 # yp_main.c can see it.
24 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
25 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
28 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
31 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
34 FILESNAME= Makefile.dist
38 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
39 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
42 .include <bsd.prog.mk>