Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk centralize the rpcgen flags and set for BSD output



details:   https://anonhg.NetBSD.org/src/rev/2c7ab5bb1730
branches:  trunk
changeset: 791982:2c7ab5bb1730
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 15 00:28:45 2013 +0000

description:
centralize the rpcgen flags and set for BSD output

diffstat:

 share/mk/bsd.rpc.mk |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (50 lines):

diff -r 18b74d22f4b5 -r 2c7ab5bb1730 share/mk/bsd.rpc.mk
--- a/share/mk/bsd.rpc.mk       Sat Dec 14 22:04:03 2013 +0000
+++ b/share/mk/bsd.rpc.mk       Sun Dec 15 00:28:45 2013 +0000
@@ -1,8 +1,9 @@
-#      $NetBSD: bsd.rpc.mk,v 1.12 2011/09/10 16:57:35 apb Exp $
+#      $NetBSD: bsd.rpc.mk,v 1.13 2013/12/15 00:28:45 christos Exp $
 
 .include <bsd.init.mk>
 
 RPC_XDIR?=     ${.CURDIR}/
+RPCGEN_FLAGS?= -B
 
 # We don't use implicit suffix rules here to avoid dependencies in the
 # Installed files.
@@ -12,7 +13,7 @@
 .for I in ${RPC_INCS}
 ${I}: ${I:.h=.x}
        ${_MKTARGET_CREATE}
-       ${TOOL_RPCGEN} -C -h ${RPC_XDIR}${I:.h=.x} -o ${.TARGET}
+       ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -h ${RPC_XDIR}${I:.h=.x} -o ${.TARGET}
 .endfor
 
 DPSRCS+=       ${RPC_INCS}
@@ -26,7 +27,7 @@
 .for I in ${RPC_XDRFILES}
 ${I}: ${RPC_XDIR}${I:_xdr.c=.x}
        ${_MKTARGET_CREATE}
-       ${TOOL_RPCGEN} -C -c ${RPC_XDIR}${I:_xdr.c=.x} -o ${.TARGET}
+       ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -c ${RPC_XDIR}${I:_xdr.c=.x} -o ${.TARGET}
 .endfor
 
 DPSRCS+=       ${RPC_XDRFILES}
@@ -45,7 +46,7 @@
 
 ${I}: ${RPC_XDIR}${I:_svc.c=.x}
        ${_MKTARGET_CREATE}
-       ${TOOL_RPCGEN} -C ${_RPCS} ${RPC_SVCFLAGS} ${RPC_XDIR}${I:_svc.c=.x} \
+       ${TOOL_RPCGEN} ${RPCGEN_FLAGS} ${_RPCS} ${RPC_SVCFLAGS} ${RPC_XDIR}${I:_svc.c=.x} \
                -o ${.TARGET}
 .endfor
 
@@ -60,7 +61,7 @@
 
 ${I}: ${RPC_XDIR}${I:_clnt.c=.x}
        ${_MKTARGET_CREATE}
-       ${TOOL_RPCGEN} -C -l ${_RPCS} ${RPC_CLNTFLAGS} \
+       ${TOOL_RPCGEN} ${RPCGEN_FLAGS} -l ${_RPCS} ${RPC_CLNTFLAGS} \
                ${RPC_XDIR}${I:_clnt.c=.x} -o ${.TARGET}
 .endfor
 



Home | Main Index | Thread Index | Old Index