1 # $NetBSD: Makefile,v 1.5.2.1 2001/04/08 20:31:42 nathanw Exp $ 2 # 3 4 INCS= auth.h auth_unix.h clnt.h clnt_soc.h nettype.h \ 5 pmap_clnt.h pmap_prot.h pmap_rmt.h raw.h rpc.h \ 6 rpc_msg.h rpcb_clnt.h rpcb_prot.h rpcent.h \ 7 svc.h svc_auth.h svc_soc.h types.h xdr.h 8 9 .ifnmake getrpcgen 10 XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen) 11 .endif 12 13 getrpcgen: 14 @set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1" 15 16 rpcb_prot.h:: rpcb_prot.x ${XRPCGEN} 17 ${RPCGEN} -C -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET} 18 19 CLEANFILES+= rpcb_prot.h 20 21 INCSDIR= /usr/include/rpc 22 23 .include <bsd.prog.mk> 24