]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.sbin/rpc.ypxfrd/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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 DPADD=  ${LIBRPCSVC}
13 LDADD=  -lrpcsvc
14
15 CLEANFILES= ypxfrd_svc.c ypxfrd.h
16
17 RPCDIR= ${.CURDIR}/../../include/rpcsvc
18 RPCGEN= rpcgen -I -C
19
20 # We need to remove the 'static' keyword from _rpcsvcstate so that
21 # ypxfrd_main.c can see it.
22 ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
23         rm -f ${.TARGET}
24         ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
25         sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
26
27 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
28 #       rm -f ${.TARGET}
29 #       ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
30
31 ypxfrd.h: ${RPCDIR}/ypxfrd.x
32         rm -f ${.TARGET}
33         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
34
35 .include <bsd.prog.mk>