Makefile.clnt revision 1.8
1#	$NetBSD: Makefile.clnt,v 1.8 2001/12/12 01:48:55 tv Exp $
2
3#	This Makefile builds a client used for testing.
4
5CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
6
7PROG=	clnt.pcnfsd
8SRCS=	pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
9NOMAN=	# defined
10
11DPADD=	${LIBRPCSVC}
12LDADD=	-lrpcsvc
13
14# Special rules for the generated C code...
15
16.ifnmake getrpcgen
17XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
18.endif
19
20getrpcgen:
21	@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
22
23pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
24	${RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
25
26pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
27	${RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
28
29pcnfsd.h: pcnfsd.x ${XRPCGEN}
30	${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
31
32CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
33
34.include <bsd.prog.mk>
35
36.depend ${OBJS}: pcnfsd.h
37