Merge remote-tracking branch 'origin/vendor/BINUTILS234'
[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
3 PROG=   ypxfr
4 SRCS=   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}
8 GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c
9
10 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
11
12 WARNS?= 3
13 MAN=    ypxfr.8
14
15 CFLAGS+= -I.
16 DPADD=  ${LIBRPCSVC}
17 LDADD=  -lrpcsvc
18
19 CLEANFILES= ${GENSRCS}
20
21 RPCDIR= ${.CURDIR}/../../include/rpcsvc
22 RPCGEN= rpcgen -I -C
23 NO_WCAST_FUNCTION_TYPE=
24
25 ypxfr_clnt.c: ${RPCDIR}/yp.x
26         rm -f ${.TARGET}
27         ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
28
29 yp_clnt.c: ${RPCDIR}/yp.x
30         rm -f ${.TARGET}
31         ${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
32
33 yp.h: ${RPCDIR}/yp.x
34         rm -f ${.TARGET}
35         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
36
37 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
38 #       rm -f ${.TARGET}
39 #       ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
40
41 ypxfrd.h: ${RPCDIR}/ypxfrd.x
42         rm -f ${.TARGET}
43         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
44
45 .include <bsd.prog.mk>