2001-01-16 05:42:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.5 2001/01/16 02:42:39 cgd Exp $
|
2000-06-03 15:23:54 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
INCS= auth.h auth_unix.h clnt.h clnt_soc.h nettype.h \
|
|
|
|
pmap_clnt.h pmap_prot.h pmap_rmt.h raw.h rpc.h \
|
|
|
|
rpc_msg.h rpcb_clnt.h rpcb_prot.h rpcent.h \
|
|
|
|
svc.h svc_auth.h svc_soc.h types.h xdr.h
|
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
.ifnmake getrpcgen
|
2001-01-07 09:56:15 +03:00
|
|
|
XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen)
|
2000-09-11 03:21:49 +04:00
|
|
|
.endif
|
2000-06-03 15:23:54 +04:00
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
getrpcgen:
|
2001-01-16 05:42:39 +03:00
|
|
|
@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
|
2000-09-11 03:21:49 +04:00
|
|
|
|
|
|
|
rpcb_prot.h:: rpcb_prot.x ${XRPCGEN}
|
|
|
|
${RPCGEN} -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET}
|
2000-06-03 15:23:54 +04:00
|
|
|
|
|
|
|
CLEANFILES+= rpcb_prot.h
|
|
|
|
|
|
|
|
INCSDIR= /usr/include/rpc
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|