1 2.include <src.opts.mk> 3 4RPCDIR= ${SRCTOP}/include/rpcsvc 5.PATH: ${RPCDIR} ${.CURDIR}/common 6 7PACKAGE= yp 8PROG= ypserv 9MAN= ypserv.8 ypinit.8 10SRCS= 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 \ 12 yplib_host.c 13 14CFLAGS+= -DDB_CACHE -I. 15 16WARNS?= 0 17 18.if ${MK_TCP_WRAPPERS} != "no" 19CFLAGS+= -DTCP_WRAPPER 20LIBADD+= wrap 21.endif 22 23CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h 24 25RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C 26 27# We need to remove the 'static' keyword from _rpcsvcstate so that 28# yp_main.c can see it. 29yp_svc.c: yp.x 30 rm -f ${.TARGET} 31 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \ 32 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET} 33 34ypxfr_clnt.c: yp.x 35 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 36 37yp.h: yp.x 38 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 39 40FILES= Makefile.yp 41FILESNAME= Makefile.dist 42FILESDIR= /var/yp 43SCRIPTS= ypinit.sh 44 45.if !exists(${DESTDIR}${FILESDIR}/Makefile) 46SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile 47.endif 48 49.include <bsd.prog.mk> 50