1# $FreeBSD$ 2 3PACKAGE= yp 4PROG= ypxfr 5SRCS= yp_dblookup.c yp_dbwrite.c yp_error.c \ 6 ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \ 7 ypxfrd_getmap.c \ 8 ${GENSRCS} 9GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c 10 11.PATH: ${SRCTOP}/usr.sbin/ypserv 12 13MAN= ypxfr.8 14 15CFLAGS+= -I. 16 17WARNS?= 2 18WFORMAT=0 19 20LIBADD= rpcsvc 21 22CLEANFILES= ${GENSRCS} 23 24RPCDIR= ${SRCTOP}/include/rpcsvc 25RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C 26 27ypxfr_clnt.c: ${RPCDIR}/yp.x 28 rm -f ${.TARGET} 29 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 30 31yp_clnt.c: ${RPCDIR}/yp.x 32 rm -f ${.TARGET} 33 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 34 35yp.h: ${RPCDIR}/yp.x 36 rm -f ${.TARGET} 37 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 38 39# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x 40# rm -f ${.TARGET} 41# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x 42 43ypxfrd.h: ${RPCDIR}/ypxfrd.x 44 rm -f ${.TARGET} 45 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x 46 47.include <bsd.prog.mk> 48