1*a62febb9Schristos# $NetBSD: Makefile.clnt,v 1.14 2013/12/15 06:10:33 christos Exp $ 282b75dfdSjtc 382b75dfdSjtc# This Makefile builds a client used for testing. 482b75dfdSjtc 5c52b93f5SlukemNOMAN= # defined 6c52b93f5Slukem 79c33b55eSthorpej.include <bsd.own.mk> 882b75dfdSjtc 982b75dfdSjtcPROG= clnt.pcnfsd 105c31b284ScgdSRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c 1182b75dfdSjtc 129c33b55eSthorpejCPPFLAGS+= -DUSER_CACHE -DWTMP -I. 139c33b55eSthorpej 149c33b55eSthorpej.if (${USE_YP} != "no") 159c33b55eSthorpejCPPFLAGS+=-DUSE_YP 169c33b55eSthorpej.endif 179c33b55eSthorpej 1882b75dfdSjtcDPADD= ${LIBRPCSVC} 1982b75dfdSjtcLDADD= -lrpcsvc 2082b75dfdSjtc 2182b75dfdSjtc# Special rules for the generated C code... 2282b75dfdSjtc 235303e70dSerh.ifnmake getrpcgen 245303e70dSerhXRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen) 255303e70dSerh.endif 265303e70dSerh 275303e70dSerhgetrpcgen: 28001c68bdSlukem @set -- X `type ${TOOL_RPCGEN}` && shift $$(($$# - 1)) && echo "$$1" 295303e70dSerh 305303e70dSerhpcnfsd_clnt.c: pcnfsd.x ${XRPCGEN} 31*a62febb9Schristos ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -l ${.CURDIR}/pcnfsd.x -o $@ 3282b75dfdSjtc 335303e70dSerhpcnfsd_xdr.c: pcnfsd.x ${XRPCGEN} 34*a62febb9Schristos ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -c ${.CURDIR}/pcnfsd.x -o $@ 3582b75dfdSjtc 365303e70dSerhpcnfsd.h: pcnfsd.x ${XRPCGEN} 37*a62febb9Schristos ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -h ${.CURDIR}/pcnfsd.x -o $@ 3882b75dfdSjtc 39a93ea220SlukemDPSRCS+= pcnfsd.h 4082b75dfdSjtcCLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h 4182b75dfdSjtc 4282b75dfdSjtc.include <bsd.prog.mk> 43