1RPCDIR= ${DESTDIR}/usr/include/rpcsvc 2 3.PATH: ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/usr.bin/chpass \ 4 ${SRCTOP}/libexec/ypxfr ${RPCDIR} 5 6PACKAGE=yp 7PROG= rpc.yppasswdd 8SCRIPTS=yppwupdate 9SCRIPTSDIR= ${LIBEXECDIR} 10MAN= rpc.yppasswdd.8 11SRCS= util.c yp_access.c yp_dblookup.c yp_dbwrite.c \ 12 yp_error.c yppasswdd_main.c yppasswdd_server.c ypxfr_misc.c ${GENSRCS} 13GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \ 14 yppasswd_private_xdr.c yppasswd_svc.c 15 16WARNS?= 5 17CFLAGS+= -fno-strict-aliasing 18CFLAGS+= -I${SRCTOP}/usr.sbin/vipw \ 19 -I${SRCTOP}/usr.sbin/ypserv \ 20 -I${SRCTOP}/libexec/ypxfr \ 21 -I${.CURDIR} -I. 22LIBADD= rpcsvc crypt util 23 24CLEANFILES= ${GENSRCS} 25 26RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C 27 28# We need to remove the 'static' keyword from _rpcsvcstate so that 29# yppasswdd_main.c can see it. 30yppasswd_svc.c: yppasswd.x 31 rm -f ${.TARGET} 32 ${RPCGEN} -m ${RPCDIR}/yppasswd.x | \ 33 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET} 34 35yppasswd.h: yppasswd.x 36 rm -f ${.TARGET} 37 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yppasswd.x 38 39yp.h: yp.x 40 rm -f ${.TARGET} 41 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 42 43yp_clnt.c: yp.x 44 rm -f ${.TARGET} 45 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 46 47yppasswd_private.h: yppasswd_private.x 48 rm -f ${.TARGET} 49 ${RPCGEN} -h -o ${.TARGET} ${.CURDIR}/yppasswd_private.x 50 51yppasswd_private_xdr.c: yppasswd_private.x 52 rm -f ${.TARGET} 53 ${RPCGEN} -c -o ${.TARGET} ${.CURDIR}/yppasswd_private.x 54 55yppasswd_private_svc.c: yppasswd_private.x 56 rm -f ${.TARGET} 57 ${RPCGEN} -m ${.CURDIR}/yppasswd_private.x | \ 58 sed s/"static int _rpcsvcstate = _IDLE"/"extern int _rpcsvcstate"/g > ${.TARGET} 59 60.include <bsd.prog.mk> 61