1# $Id: Makefile,v 1.6 1997/02/22 14:22:46 peter Exp $ 2 3PROG= ypxfr 4SRCS= yp_dblookup.c yp_dbwrite.c yp_error.c \ 5 ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \ 6 ypxfrd_getmap.c \ 7 ${GENSRCS} 8GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c 9 10.PATH: ${.CURDIR}/../../usr.sbin/ypserv 11 12MAN8= ypxfr.8 13 14CFLAGS+= -I. 15DPADD= ${LIBRPCSVC} 16LDADD= -lrpcsvc 17 18CLEANFILES= ${GENSRCS} 19 20RPCDIR= ${.CURDIR}/../../include/rpcsvc 21RPCGEN= rpcgen -I -C 22 23ypxfr_clnt.c: ${RPCDIR}/yp.x 24 rm -f ${.TARGET} 25 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 26 27yp_clnt.c: ${RPCDIR}/yp.x 28 rm -f ${.TARGET} 29 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x 30 31yp.h: ${RPCDIR}/yp.x 32 rm -f ${.TARGET} 33 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x 34 35# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x 36# rm -f ${.TARGET} 37# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x 38 39ypxfrd.h: ${RPCDIR}/ypxfrd.x 40 rm -f ${.TARGET} 41 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x 42 43.include <bsd.prog.mk> 44