5 RPCDIR= ${.CURDIR}/../../include/rpcsvc
10 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
11 ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c
13 CFLAGS+= -DDB_CACHE -I.
17 .if ${MK_TCP_WRAPPERS} != "no"
18 CFLAGS+= -DTCP_WRAPPER
23 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
25 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
27 # We need to remove the 'static' keyword from _rpcsvcstate so that
28 # yp_main.c can see it.
31 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
32 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
35 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
38 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
41 FILESNAME= Makefile.dist
45 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
46 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
49 .include <bsd.prog.mk>