Makefile.clnt revision 1.10
1# $NetBSD: Makefile.clnt,v 1.10 2002/09/18 13:31:56 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 ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1" 29 30pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN} 31 ${RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@ 32 33pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN} 34 ${RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@ 35 36pcnfsd.h: pcnfsd.x ${XRPCGEN} 37 ${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@ 38 39CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h 40 41.include <bsd.prog.mk> 42 43.depend ${OBJS}: pcnfsd.h 44