xref: /netbsd-src/include/rpc/Makefile (revision 5e4c038a45edbc7d63b7c2daa76e29f88b64a4e3)
1#	$NetBSD: Makefile,v 1.9 2002/01/29 11:22:26 tv Exp $
2#
3
4INCS=	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
9CLEANFILES+=	rpcb_prot.h
10
11INCSDIR=	/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
21rpcb_prot.h: rpcb_prot.x ${_RPCGEN}
22	${RPCGEN} -C -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET}
23