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