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 $
5 SRCS
= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \
6 yp_access.c ypxfrd_main.c
9 RPCDIR
= ${.CURDIR
}/..
/..
/include/rpcsvc
11 .PATH
: ${.CURDIR
}/..
/..
/usr.sbin
/ypserv
15 CFLAGS
+= -I.
-DXFRBLOCKSIZE
=65535
20 CLEANFILES
= ypxfrd_svc.c ypxfrd.h
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
28 ${RPCGEN} -m
${RPCDIR}/ypxfrd.x | \
29 sed s
/"static int _rpcsvcstate"/"int _rpcsvcstate"/g
> ${.TARGET
}
31 # ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
33 # ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
35 ypxfrd.h
: ${RPCDIR}/ypxfrd.x
37 ${RPCGEN} -h
-o
${.TARGET
} ${RPCDIR}/ypxfrd.x
39 .
include <bsd.prog.mk
>