gcc47 build fixes: Unused-but-set-variable + more warnings
[dragonfly.git] / libexec / ypxfr / Makefile
1 # $FreeBSD: src/libexec/ypxfr/Makefile,v 1.8.2.1 2001/04/25 10:41:06 ru Exp $
2 # $DragonFly: src/libexec/ypxfr/Makefile,v 1.2 2003/06/17 04:27:08 dillon Exp $
3
4 PROG=   ypxfr
5 SRCS=   yp_dblookup.c yp_dbwrite.c yp_error.c \
6         ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \
7         ypxfrd_getmap.c \
8         ${GENSRCS}
9 GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c
10
11 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
12
13 WARNS?= 3
14 MAN=    ypxfr.8
15
16 CFLAGS+= -I.
17 CFLAGS+= -Wno-enum-compare
18 DPADD=  ${LIBRPCSVC}
19 LDADD=  -lrpcsvc
20
21 CLEANFILES= ${GENSRCS}
22
23 RPCDIR= ${.CURDIR}/../../include/rpcsvc
24 RPCGEN= rpcgen -I -C
25
26 ypxfr_clnt.c: ${RPCDIR}/yp.x
27         rm -f ${.TARGET}
28         ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
29
30 yp_clnt.c: ${RPCDIR}/yp.x
31         rm -f ${.TARGET}
32         ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
33
34 yp.h: ${RPCDIR}/yp.x
35         rm -f ${.TARGET}
36         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
37
38 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
39 #       rm -f ${.TARGET}
40 #       ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
41
42 ypxfrd.h: ${RPCDIR}/ypxfrd.x
43         rm -f ${.TARGET}
44         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
45
46 .include <bsd.prog.mk>