1 # $NetBSD: Makefile,v 1.8 2001/11/01 15:03:08 tv 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 CLEANFILES+= rpcb_prot.h 10 11 INCSDIR= /usr/include/rpc 12 13 .include <bsd.prog.mk> 14 15 # Resolve rpcgen's path, to allow it to be a dependency. 16 _RPCGEN:= ${RPCGEN} 17 .if ${_RPCGEN:M/*} == "" 18 _RPCGEN!= type ${RPCGEN} | awk '{print $$NF}' 19 .endif 20 21 rpcb_prot.h: rpcb_prot.x ${_RPCGEN} 22 ${RPCGEN} -C -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET} 23