Source-Changes-HG archive

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

[src/trunk]: src ${RPCGEN}, not hard-coded rpcgen



details:   https://anonhg.NetBSD.org/src/rev/f8495625d15d
branches:  trunk
changeset: 495266:f8495625d15d
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Jul 25 06:29:44 2000 +0000

description:
${RPCGEN}, not hard-coded rpcgen

diffstat:

 include/rpc/Makefile              |  4 ++--
 lib/librpcsvc/Makefile            |  6 +++---
 share/mk/bsd.sys.mk               |  3 ++-
 usr.sbin/rpc.bootparamd/Makefile  |  4 ++--
 usr.sbin/rpc.lockd/Makefile       |  4 ++--
 usr.sbin/rpc.pcnfsd/Makefile      |  8 ++++----
 usr.sbin/rpc.pcnfsd/Makefile.clnt |  8 ++++----
 usr.sbin/rpc.statd/Makefile       |  4 ++--
 8 files changed, 21 insertions(+), 20 deletions(-)

diffs (163 lines):

diff -r ebeec3a89805 -r f8495625d15d include/rpc/Makefile
--- a/include/rpc/Makefile      Tue Jul 25 06:26:18 2000 +0000
+++ b/include/rpc/Makefile      Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2000/06/03 11:23:55 fvdl Exp $
+#      $NetBSD: Makefile,v 1.2 2000/07/25 06:29:45 cgd Exp $
 #
 
 INCS=  auth.h auth_unix.h clnt.h clnt_soc.h nettype.h \
@@ -8,7 +8,7 @@
 
 
 rpcb_prot.h: rpcb_prot.x
-       rpcgen -h ${.ALLSRC} -o ${.TARGET}
+       ${RPCGEN} -h ${.ALLSRC} -o ${.TARGET}
 
 CLEANFILES+=   rpcb_prot.h
 
diff -r ebeec3a89805 -r f8495625d15d lib/librpcsvc/Makefile
--- a/lib/librpcsvc/Makefile    Tue Jul 25 06:26:18 2000 +0000
+++ b/lib/librpcsvc/Makefile    Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.24 1999/02/13 02:54:30 lukem Exp $
+#      $NetBSD: Makefile,v 1.25 2000/07/25 06:29:46 cgd Exp $
 
 RPCSRCS=       bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
                nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
@@ -19,10 +19,10 @@
 
 .for I in ${RPCSRCS}
 ${I:.x=.c}: $I
-       rpcgen -c ${.ALLSRC} -o ${.TARGET}
+       ${RPCGEN} -c ${.ALLSRC} -o ${.TARGET}
 
 ${I:.x=.h}: $I
-       rpcgen -h ${.ALLSRC} -o ${.TARGET}
+       ${RPCGEN} -h ${.ALLSRC} -o ${.TARGET}
 .endfor
 
 .include <bsd.lib.mk>
diff -r ebeec3a89805 -r f8495625d15d share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Jul 25 06:26:18 2000 +0000
+++ b/share/mk/bsd.sys.mk       Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.39 2000/05/09 00:15:55 thorpej Exp $
+#      $NetBSD: bsd.sys.mk,v 1.40 2000/07/25 06:29:44 cgd Exp $
 #
 # Overrides used for NetBSD source tree builds.
 
@@ -43,6 +43,7 @@
 OBJCOPY?=      objcopy
 STRIP?=                strip
 CONFIG?=       config
+RPCGEN?=       rpcgen
 
 .SUFFIXES:     .m .o .ln .lo
 
diff -r ebeec3a89805 -r f8495625d15d usr.sbin/rpc.bootparamd/Makefile
--- a/usr.sbin/rpc.bootparamd/Makefile  Tue Jul 25 06:26:18 2000 +0000
+++ b/usr.sbin/rpc.bootparamd/Makefile  Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2000/06/12 01:57:25 mycroft Exp $
+#      $NetBSD: Makefile,v 1.18 2000/07/25 06:29:46 cgd Exp $
 
 PROG=  rpc.bootparamd
 SRCS=  bootparamd.c bootparam_prot_svc.c
@@ -18,7 +18,7 @@
        ln -s ${.ALLSRC} ${.TARGET}
 
 bootparam_prot_svc.c: bootparam_prot.x bootparam_prot.h
-       rpcgen -C -L -m -o ${.TARGET} bootparam_prot.x
+       ${RPCGEN} -C -L -m -o ${.TARGET} bootparam_prot.x
 
 CLEANFILES += bootparam_prot_svc.c bootparam_prot.x bootparam_prot.h
 
diff -r ebeec3a89805 -r f8495625d15d usr.sbin/rpc.lockd/Makefile
--- a/usr.sbin/rpc.lockd/Makefile       Tue Jul 25 06:26:18 2000 +0000
+++ b/usr.sbin/rpc.lockd/Makefile       Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2000/06/12 01:57:26 mycroft Exp $
+#      $NetBSD: Makefile,v 1.10 2000/07/25 06:29:46 cgd Exp $
 
 PROG=  rpc.lockd
 SRCS=  nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
@@ -21,7 +21,7 @@
        ln -s ${.ALLSRC} ${.TARGET}
 
 nlm_prot_svc.c: nlm_prot.x nlm_prot.h
-       rpcgen -C -L -m -o ${.TARGET} nlm_prot.x
+       ${RPCGEN} -C -L -m -o ${.TARGET} nlm_prot.x
 
 test: ${.CURDIR}/test.c
        cc -o test ${.CURDIR}/test.c -lrpcsvc
diff -r ebeec3a89805 -r f8495625d15d usr.sbin/rpc.pcnfsd/Makefile
--- a/usr.sbin/rpc.pcnfsd/Makefile      Tue Jul 25 06:26:18 2000 +0000
+++ b/usr.sbin/rpc.pcnfsd/Makefile      Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 1997/10/25 06:58:38 lukem Exp $
+#      $NetBSD: Makefile,v 1.7 2000/07/25 06:29:46 cgd Exp $
 
 PROG=  rpc.pcnfsd
 MAN=   pcnfsd.8
@@ -12,13 +12,13 @@
 LDADD= -lrpcsvc -lcrypt
 
 pcnfsd_svc.c: pcnfsd.x
-       rpcgen -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@
 
 pcnfsd_xdr.c: pcnfsd.x
-       rpcgen -C -c ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -C -c ${.CURDIR}/pcnfsd.x -o $@
 
 pcnfsd.h: pcnfsd.x
-       rpcgen -C -h ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -C -h ${.CURDIR}/pcnfsd.x -o $@
 
 CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h
 CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.*
diff -r ebeec3a89805 -r f8495625d15d usr.sbin/rpc.pcnfsd/Makefile.clnt
--- a/usr.sbin/rpc.pcnfsd/Makefile.clnt Tue Jul 25 06:26:18 2000 +0000
+++ b/usr.sbin/rpc.pcnfsd/Makefile.clnt Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.clnt,v 1.5 1999/02/13 02:55:00 lukem Exp $
+#      $NetBSD: Makefile.clnt,v 1.6 2000/07/25 06:29:46 cgd Exp $
 
 #      This Makefile builds a client used for testing.
 
@@ -14,13 +14,13 @@
 # Special rules for the generated C code...
 
 pcnfsd_clnt.c: pcnfsd.x
-       rpcgen -l ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
 
 pcnfsd_xdr.c: pcnfsd.x
-       rpcgen -c ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
 
 pcnfsd.h: pcnfsd.x
-       rpcgen -h ${.CURDIR}/pcnfsd.x -o $@
+       ${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
 
 CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
 
diff -r ebeec3a89805 -r f8495625d15d usr.sbin/rpc.statd/Makefile
--- a/usr.sbin/rpc.statd/Makefile       Tue Jul 25 06:26:18 2000 +0000
+++ b/usr.sbin/rpc.statd/Makefile       Tue Jul 25 06:29:44 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2000/06/12 01:57:26 mycroft Exp $
+#      $NetBSD: Makefile,v 1.9 2000/07/25 06:29:47 cgd Exp $
 
 PROG=  rpc.statd
 SRCS=  sm_inter_svc.c statd.c stat_proc.c
@@ -21,7 +21,7 @@
        ln -s ${.ALLSRC} ${.TARGET}
 
 sm_inter_svc.c: sm_inter.x sm_inter.h
-       rpcgen -C -L -m -o ${.TARGET} sm_inter.x
+       ${RPCGEN} -C -L -m -o ${.TARGET} sm_inter.x
 
 test: ${.CURDIR}/test.c
        cc -o test ${.CURDIR}/test.c -lrpcsvc



Home | Main Index | Thread Index | Old Index