Silence warnings and rearrange the includes a bit.
[dragonfly.git] / libexec / ypxfr / Makefile
blob8d6bf64489003a10a6cfb4fb59db25d85ed05038
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 MAN= ypxfr.8
15 CFLAGS+= -I.
16 DPADD= ${LIBRPCSVC}
17 LDADD= -lrpcsvc
19 CLEANFILES= ${GENSRCS}
21 RPCDIR= ${.CURDIR}/../../include/rpcsvc
22 RPCGEN= rpcgen -I -C
24 ypxfr_clnt.c: ${RPCDIR}/yp.x
25 rm -f ${.TARGET}
26 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
28 yp_clnt.c: ${RPCDIR}/yp.x
29 rm -f ${.TARGET}
30 ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
32 yp.h: ${RPCDIR}/yp.x
33 rm -f ${.TARGET}
34 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
36 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
37 # rm -f ${.TARGET}
38 # ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
40 ypxfrd.h: ${RPCDIR}/ypxfrd.x
41 rm -f ${.TARGET}
42 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
44 .include <bsd.prog.mk>