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