Home | History | Annotate | Line # | Download | only in rpc
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2001/01/07 06:56:15 enami 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 .ifnmake getrpcgen
     10 XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen)
     11 .endif
     12 
     13 getrpcgen:
     14 	@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
     15 
     16 rpcb_prot.h:: rpcb_prot.x ${XRPCGEN}
     17 	${RPCGEN} -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET}
     18 
     19 CLEANFILES+=	rpcb_prot.h
     20 
     21 INCSDIR=	/usr/include/rpc
     22 
     23 .include <bsd.prog.mk>
     24