diff --git a/include/rpc/Makefile b/include/rpc/Makefile --- a/include/rpc/Makefile +++ b/include/rpc/Makefile @@ -3,7 +3,7 @@ .SUFFIXES: .x -RPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C +RPCCOM= RPCGEN_CPP=${CPP:Q} ${RPCGEN} -C HDRS= rpcb_prot.h diff --git a/include/rpcsvc/Makefile b/include/rpcsvc/Makefile --- a/include/rpcsvc/Makefile +++ b/include/rpcsvc/Makefile @@ -3,7 +3,7 @@ .SUFFIXES: .x -RPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C +RPCCOM= RPCGEN_CPP=${CPP:Q} ${RPCGEN} -C HDRS= key_prot.h klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \ rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \ diff --git a/share/mk/sys.mk b/share/mk/sys.mk --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -264,6 +264,9 @@ RC ?= f77 RFLAGS ?= +.if !defined(%POSIX) +RPCGEN ?= rpcgen +.endif TSORT ?= tsort TSORTFLAGS ?= -q @@ -283,6 +286,10 @@ YFLAGS ?= -d .endif +.if !defined(%POSIX) +ZIC ?= zic +.endif + .if defined(%POSIX) .include "bsd.suffixes-posix.mk" diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile --- a/share/zoneinfo/Makefile +++ b/share/zoneinfo/Makefile @@ -86,7 +86,7 @@ mkdir -p ${TZBUILDDIR} cd ${TZBUILDDIR}; mkdir -p ${TZBUILDSUBDIRS} umask 022; cd ${.CURDIR}; \ - zic -D -d ${TZBUILDDIR} ${ZICFLAGS} -m ${NOBINMODE} \ + ${ZIC} -D -d ${TZBUILDDIR} ${ZICFLAGS} -m ${NOBINMODE} \ ${LEAPFILE} ${TZFILES} #