1 # $NetBSD: Makefile.clnt,v 1.12 2003/07/28 15:25:07 lukem Exp $
3 # This Makefile builds a client used for testing.
10 SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
12 CPPFLAGS+= -DUSER_CACHE -DWTMP -I.
14 .if (${USE_YP} != "no")
21 # Special rules for the generated C code...
24 XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
28 @set -- X `type ${TOOL_RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
30 pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
31 ${TOOL_RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
33 pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
34 ${TOOL_RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
36 pcnfsd.h: pcnfsd.x ${XRPCGEN}
37 ${TOOL_RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
40 CLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
42 .include <bsd.prog.mk>