Restrict -Werror to gcc41.
[dragonfly.git] / libexec / ypxfr / Makefile
blobdd090c017b6f2ed74599dc50c6557d6003e63b3c
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 $
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
11 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
13 WARNS?= 3
14 MAN= ypxfr.8
16 CFLAGS+= -I.
17 DPADD= ${LIBRPCSVC}
18 LDADD= -lrpcsvc
20 CLEANFILES= ${GENSRCS}
22 RPCDIR= ${.CURDIR}/../../include/rpcsvc
23 RPCGEN= rpcgen -I -C
25 ypxfr_clnt.c: ${RPCDIR}/yp.x
26 rm -f ${.TARGET}
27 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
29 yp_clnt.c: ${RPCDIR}/yp.x
30 rm -f ${.TARGET}
31 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
33 yp.h: ${RPCDIR}/yp.x
34 rm -f ${.TARGET}
35 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
37 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
38 # rm -f ${.TARGET}
39 # ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
41 ypxfrd.h: ${RPCDIR}/ypxfrd.x
42 rm -f ${.TARGET}
43 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
45 .include <bsd.prog.mk>