From cdcdfd877b64ab48b31fa64dfac76eedbe0cb875 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 1 Apr 2003 11:39:04 +0000 Subject: [PATCH] Parallelize (on the top-level SUBDIR list) the "all" stage of buildworld. This gives 5-11% percent gain in real buildworld times on various UP and SMP systems here. I used 4 * hw.ncpu as an argument to "make -j" in my tests. --- Makefile.inc1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index cf11efff49da..38bc50852f63 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -330,7 +330,7 @@ everything: @echo "--------------------------------------------------------------" @echo ">>> stage 4: building everything.." @echo "--------------------------------------------------------------" - cd ${.CURDIR}; ${WMAKE} all + cd ${.CURDIR}; ${WMAKE} par-all WMAKE_TGTS= @@ -786,7 +786,7 @@ _startup_libs: ${_startup_libs:S/$/__L/} _prebuild_libs: ${_prebuild_libs:S/$/__L/} _generic_libs: ${_generic_libs:S/$/__L/} -.for __target in clean cleandepend cleandir depend includes obj +.for __target in all clean cleandepend cleandir depend includes obj .for entry in ${SUBDIR} ${entry}.${__target}__D: .PHONY @if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \