]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/rpc.ypxfrd/Makefile
bhnd(9): Fix a few mandoc related issues
[FreeBSD/FreeBSD.git] / usr.sbin / rpc.ypxfrd / Makefile
1 # $FreeBSD$
2
3 .PATH: ${SRCTOP}/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 LIBADD= rpcsvc
15
16 CLEANFILES= ypxfrd_svc.c ypxfrd.h
17
18 RPCDIR= ${SRCTOP}/include/rpcsvc
19 RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
20
21 # We need to remove the 'static' keyword from _rpcsvcstate so that
22 # ypxfrd_main.c can see it.
23 ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
24         rm -f ${.TARGET}
25         ${RPCGEN} -m ${.ALLSRC} | \
26         sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
27
28 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
29 #       rm -f ${.TARGET}
30 #       ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
31
32 ypxfrd.h: ${RPCDIR}/ypxfrd.x
33         rm -f ${.TARGET}
34         ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
35
36 .include <bsd.prog.mk>