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