xref: /freebsd/usr.sbin/rpc.ypxfrd/Makefile (revision 16118c2bcbf7e13cebfa7fb370da2b410be8d174)
1# $Id: Makefile,v 1.4 1996/06/03 04:48:32 wpaul Exp $
2
3PROG=	rpc.ypxfrd
4SRCS=	ypxfrd_svc.c ypxfrd_server.c yp_error.c \
5	ypxfrd_xdr.c yp_access.c ypxfrd_main.c
6
7RPCDIR=	${.CURDIR}/../../include/rpcsvc
8
9.PATH:	${.CURDIR}/../../usr.sbin/ypserv
10
11MAN8=	rpc.ypxfrd.8
12
13CFLAGS+= -I. -DXFRBLOCKSIZE=65535
14
15LDADD+=-lrpcsvc
16
17CLEANFILES= ypxfrd_svc.c ypxfrd.h
18
19RPCGEN= rpcgen -I -C
20
21# We need to remove the 'static' keyword from _rpcsvcstate so that
22# ypxfrd_main.c can see it.
23ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x ypxfrd.h
24	rm -f ${.TARGET}
25	${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
26	sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
27
28# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x ypxfrd.h
29#	rm -f ${.TARGET}
30#	${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
31
32ypxfrd.h: ${RPCDIR}/ypxfrd.x
33	rm -f ${.TARGET}
34	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
35
36.include <bsd.prog.mk>
37