summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-06-05 05:42:52 +0000
committerwpaul <wpaul@FreeBSD.org>1996-06-05 05:42:52 +0000
commitcfa9db5160a6c391b48cdaa5f955af40eb976b74 (patch)
treeba77c87011f020aaf878a55b1499faae0f105208 /libexec/ypxfr/Makefile
parentd197dcd271d442bc58e2ff1ae5fab02eb8f77e85 (diff)
downloadFreeBSD-src-cfa9db5160a6c391b48cdaa5f955af40eb976b74.zip
FreeBSD-src-cfa9db5160a6c391b48cdaa5f955af40eb976b74.tar.gz
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.
Diffstat (limited to 'libexec/ypxfr/Makefile')
-rw-r--r--libexec/ypxfr/Makefile32
1 files changed, 23 insertions, 9 deletions
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 <bsd.prog.mk>
OpenPOWER on IntegriCloud