5 RPCDIR= ${SRCTOP}/include/rpcsvc
6 .PATH: ${RPCDIR} ${.CURDIR}/common
10 MAN= ypserv.8 ypinit.8
11 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
12 ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c \
15 CFLAGS+= -DDB_CACHE -I.
19 .if ${MK_TCP_WRAPPERS} != "no"
20 CFLAGS+= -DTCP_WRAPPER
24 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
26 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
28 # We need to remove the 'static' keyword from _rpcsvcstate so that
29 # yp_main.c can see it.
32 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
33 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
36 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
39 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
42 FILESNAME= Makefile.dist
46 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
47 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
50 .include <bsd.prog.mk>