kgdb - Fix kernel trapframe backtraces for x86_64
[dragonfly.git] / usr.sbin / rpc.ypxfrd / Makefile
blob141fc031181bd5b3e017cec0fb4a4a825af0cf02
1 # $FreeBSD: src/usr.sbin/rpc.ypxfrd/Makefile,v 1.8.2.1 2001/04/25 12:10:47 ru Exp $
2 # $DragonFly: src/usr.sbin/rpc.ypxfrd/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
4 PROG= rpc.ypxfrd
5 SRCS= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \
6 yp_access.c ypxfrd_main.c
7 WARNS?= 1
9 RPCDIR= ${.CURDIR}/../../include/rpcsvc
11 .PATH: ${.CURDIR}/../../usr.sbin/ypserv
13 MAN= rpc.ypxfrd.8
15 CFLAGS+= -I. -DXFRBLOCKSIZE=65535
17 DPADD= ${LIBRPCSVC}
18 LDADD= -lrpcsvc
20 CLEANFILES= ypxfrd_svc.c ypxfrd.h
22 RPCGEN= rpcgen -I -C
24 # We need to remove the 'static' keyword from _rpcsvcstate so that
25 # ypxfrd_main.c can see it.
26 ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
27 rm -f ${.TARGET}
28 ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
29 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
31 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
32 # rm -f ${.TARGET}
33 # ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
35 ypxfrd.h: ${RPCDIR}/ypxfrd.x
36 rm -f ${.TARGET}
37 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
39 .include <bsd.prog.mk>