ypxfr(8): Use the correct enum member for checking yp_errno.
[dragonfly.git] / libexec / ypxfr / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/libexec/ypxfr/Makefile,v 1.8.2.1 2001/04/25 10:41:06 ru 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
b843d307 12WARNS?= 3
984263bc
MD
13MAN= ypxfr.8
14
15CFLAGS+= -I.
16DPADD= ${LIBRPCSVC}
17LDADD= -lrpcsvc
18
19CLEANFILES= ${GENSRCS}
20
21RPCDIR= ${.CURDIR}/../../include/rpcsvc
22RPCGEN= rpcgen -I -C
23
24ypxfr_clnt.c: ${RPCDIR}/yp.x
25 rm -f ${.TARGET}
26 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
27
28yp_clnt.c: ${RPCDIR}/yp.x
29 rm -f ${.TARGET}
30 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
31
32yp.h: ${RPCDIR}/yp.x
33 rm -f ${.TARGET}
34 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
35
36# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
37# rm -f ${.TARGET}
38# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
39
40ypxfrd.h: ${RPCDIR}/ypxfrd.x
41 rm -f ${.TARGET}
42 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
43
44.include <bsd.prog.mk>