]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - usr.sbin/rpc.ypxfrd/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / usr.sbin / rpc.ypxfrd / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
4
5 PROG=   rpc.ypxfrd
6 MAN=    rpc.ypxfrd.8
7 SRCS=   ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \
8         yp_access.c ypxfrd_main.c
9
10 CFLAGS+= -I. -DXFRBLOCKSIZE=65535
11
12 WARNS?= 2
13
14 DPADD=  ${LIBRPCSVC}
15 LDADD=  -lrpcsvc
16
17 CLEANFILES= ypxfrd_svc.c ypxfrd.h
18
19 RPCDIR= ${.CURDIR}/../../include/rpcsvc
20 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
21
22 # We need to remove the 'static' keyword from _rpcsvcstate so that
23 # ypxfrd_main.c can see it.
24 ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
25         rm -f ${.TARGET}
26         ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
27         sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
28
29 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
30 #       rm -f ${.TARGET}
31 #       ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
32
33 ypxfrd.h: ${RPCDIR}/ypxfrd.x
34         rm -f ${.TARGET}
35         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
36
37 .include <bsd.prog.mk>