From cfa9db5160a6c391b48cdaa5f955af40eb976b74 Mon Sep 17 00:00:00 2001 From: wpaul Date: Wed, 5 Jun 1996 05:42:52 +0000 Subject: Add support for rpc.ypxfrd and document it in the man page. Also generallize the yp_dbwrite functions a little: allow the caller to specify certain flags. I need this mostly for some changes to rpc.yppasswdd to allow in-place updates. Also change Makefile a little to use the same format as ypserv. --- libexec/ypxfr/Makefile | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'libexec/ypxfr/Makefile') diff --git a/libexec/ypxfr/Makefile b/libexec/ypxfr/Makefile index 0339aee..b672219 100644 --- a/libexec/ypxfr/Makefile +++ b/libexec/ypxfr/Makefile @@ -2,25 +2,39 @@ PROG= ypxfr SRCS= ypxfr_clnt.c yp_clnt.c ypxfr_getmap.c yp_dblookup.c \ - yp_error.c ypxfr_misc.c ypxfr_main.c yp_dbwrite.c + yp_error.c ypxfr_misc.c ypxfr_main.c yp_dbwrite.c \ + ypxfrd_xdr.c ypxfrd_getmap.c .PATH: ${.CURDIR}/../../usr.sbin/ypserv MAN8= ypxfr.8 -CFLAGS+=-I. + +CFLAGS+= -I. +LDADD+= -lrpcsvc CLEANFILES= yp.h yp_clnt.c ypxfr_clnt.c -RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x +RPCDIR= ${.CURDIR}/../../include/rpcsvc RPCGEN= rpcgen -I -C -ypxfr_clnt.c: ${RPCSRC} yp.h - ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCSRC} +ypxfr_clnt.c: ${RPCDIR}/yp.x yp.h + rm -f ${.TARGET} + ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x + +yp_clnt.c: ${RPCDIR}/yp.x yp.h + rm -f ${.TARGET} + ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x + +yp.h: ${RPCDIR}/yp.x + rm -f ${.TARGET} + ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x -yp_clnt.c: ${RPCSRC} yp.h - ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCSRC} +# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x ypxfrd.h +# rm -f ${.TARGET} +# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x -yp.h: ${RPCSRC} - ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} +ypxfrd.h: ${RPCDIR}/ypxfrd.x + rm -f ${.TARGET} + ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x .include -- cgit v1.1