Home | History | Annotate | Line # | Download | only in rpc
Makefile revision 1.5.2.4
      1 #	$NetBSD: Makefile,v 1.5.2.4 2002/03/11 21:07:53 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 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:M*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