11a32a8feSEnji Cooper.PATH: ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr 290e655eaSDavid E. O'Brien 3*5abb10faSEmmanuel VadotPACKAGE=yp 440a5f74dSBill PaulPROG= rpc.ypupdated 53bdf7758SWarner LoshMAN= 62f8bfc23SBruce EvansSRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \ 740a5f74dSBill Paul yp_error.c update.c ypupdated_server.c \ 840a5f74dSBill Paul yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c 940a5f74dSBill Paul 1040a5f74dSBill Paul#CFLAGS+= -DYP 111a32a8feSEnji CooperCFLAGS+= -I${SRCTOP}/usr.sbin/ypserv -I. -I${SRCTOP}/libexec/ypxfr 1240a5f74dSBill Paul 1371ccf092SEd SchoutenWARNS?= 1 1471ccf092SEd Schouten 15c6db8143SBaptiste DaroussinLIBADD= rpcsvc 1640a5f74dSBill Paul 1740a5f74dSBill PaulCLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h 1840a5f74dSBill Paul 19c99b67a7SBryan DreweryRPCDIR= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc 205e0a19bdSDimitry AndricRPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C 2140a5f74dSBill Paul 2240a5f74dSBill Paul# We need to remove the 'static' keyword from _rpcsvcstate so that 2340a5f74dSBill Paul# ypupdated_main.c can see it. 24930ef4e2SBruce Evansypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x 2540a5f74dSBill Paul rm -f ${.TARGET} 261a32a8feSEnji Cooper ${RPCGEN} -m ${.ALLSRC} | \ 2740a5f74dSBill Paul sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET} 2840a5f74dSBill Paul 2940a5f74dSBill Paulypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x 301a32a8feSEnji Cooper ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC} 3140a5f74dSBill Paul 3240a5f74dSBill Paul.include <bsd.prog.mk> 33