1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1995-12-25 03:07:13 +00:00
|
|
|
|
|
|
|
PROG= ypxfr
|
|
|
|
SRCS= ypxfr_clnt.c yp_clnt.c ypxfr_getmap.c yp_dblookup.c \
|
1996-06-05 05:42:52 +00:00
|
|
|
yp_error.c ypxfr_misc.c ypxfr_main.c yp_dbwrite.c \
|
1996-06-06 03:58:06 +00:00
|
|
|
ypxfrd_getmap.c
|
1995-12-25 03:07:13 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/ypserv
|
|
|
|
|
|
|
|
MAN8= ypxfr.8
|
1996-06-05 05:42:52 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I.
|
1996-09-05 17:16:10 +00:00
|
|
|
DPADD= ${LIBRPCSVC}
|
|
|
|
LDADD= -lrpcsvc
|
1995-12-25 03:07:13 +00:00
|
|
|
|
|
|
|
CLEANFILES= yp.h yp_clnt.c ypxfr_clnt.c
|
|
|
|
|
1996-06-05 05:42:52 +00:00
|
|
|
RPCDIR= ${.CURDIR}/../../include/rpcsvc
|
1995-12-25 03:07:13 +00:00
|
|
|
RPCGEN= rpcgen -I -C
|
|
|
|
|
1996-06-05 05:42:52 +00:00
|
|
|
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
|
1995-12-25 03:07:13 +00:00
|
|
|
|
1996-06-05 05:42:52 +00:00
|
|
|
# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x ypxfrd.h
|
|
|
|
# rm -f ${.TARGET}
|
|
|
|
# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
|
1995-12-25 03:07:13 +00:00
|
|
|
|
1996-06-05 05:42:52 +00:00
|
|
|
ypxfrd.h: ${RPCDIR}/ypxfrd.x
|
|
|
|
rm -f ${.TARGET}
|
|
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
|
1995-12-25 03:07:13 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|