Makefile revision 31110
1145516Sdarrenr# $Id: Makefile,v 1.3 1997/11/10 21:22:17 wpaul Exp $ 2145516Sdarrenr 3145516SdarrenrPROG= ypserv 4145516SdarrenrSRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ 5145516Sdarrenr ypxfr_clnt.c yp_main.c yp_error.c yp_access.c yp_svc_udp.c 6145516Sdarrenr 7145516SdarrenrMAN8= ypserv.8 ypinit.8 8145516Sdarrenr 9145516SdarrenrCFLAGS+= -I. -DDB_CACHE 10145516Sdarrenr 11145516SdarrenrCLEANFILES= yp_svc.c ypxfr_clnt.c yp.h 12145516Sdarrenr 13145516SdarrenrRPCDIR= ${.CURDIR}/../../include/rpcsvc 14145516Sdarrenr.PATH: ${RPCDIR} 15145516Sdarrenr 16145516SdarrenrRPCGEN= rpcgen -I -C 17145516Sdarrenr 18145516Sdarrenr# We need to remove the 'static' keyword from _rpcsvcstate so that 19145516Sdarrenr# yp_main.c can see it. 20145516Sdarrenryp_svc.c: yp.x yp.h 21145516Sdarrenr rm -f ${.TARGET} 22145516Sdarrenr ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \ 23145516Sdarrenr sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET} 24145516Sdarrenr 25145516Sdarrenrypxfr_clnt.c: yp.x yp.h 26145516Sdarrenr ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 27145516Sdarrenr 28145516Sdarrenryp.h: yp.x 29145516Sdarrenr ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 30145516Sdarrenr 31145516Sdarrenrafterinstall: 32145516Sdarrenr ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 33145516Sdarrenr ${.CURDIR}/Makefile.yp \ 34145516Sdarrenr ${DESTDIR}/var/yp/Makefile.dist 35145516Sdarrenr ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 36145516Sdarrenr ${.CURDIR}/ypinit.sh ${BINDIR}/ypinit 37145516Sdarrenr @if [ ! -f ${DESTDIR}/var/yp/Makefile.dist ]; then \ 38145516Sdarrenr ln -s ${DESTDIR}/var/yp/Makefile.dist \ 39145516Sdarrenr ${DESTDIR}/var/yp/Makefile; fi 40145516Sdarrenr 41145516Sdarrenr.include <bsd.prog.mk> 42145516Sdarrenr