xref: /netbsd/include/rpc/Makefile (revision c4a72b64)
1#	$NetBSD: Makefile,v 1.10 2002/11/08 00:08:38 fvdl 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_com.h 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