From e09c9e667dc695e9035670b5c2e6c890a8a49075 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Fri, 13 Aug 1999 23:54:35 +0200
Subject: [PATCH] MAKE_PARALLEL

Rev: src/Makefile.in:1.147
---
 src/Makefile.in | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index 9d4e3b63ce..1f51a8936a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,5 +1,5 @@
 #
-# $Id: Makefile.in,v 1.146 1999/08/11 15:42:31 mast Exp $
+# $Id: Makefile.in,v 1.147 1999/08/13 21:54:35 mast Exp $
 #
 
 # This line is needed on some machines.
@@ -59,6 +59,10 @@ DEFINES=@CPPFLAGS@
 # -O should work with all compilers
 OPTIMIZE=@OPTIMIZE@
 
+# Set to a flag for parallelizing make, e.g. -j2. It's given to make
+# at the level where it's most effective.
+MAKE_PARALLEL=
+
 # Preprocessor flags.
 PREFLAGS=-I. -I$(SRCDIR) $(DEFINES)
 OTHERFLAGS=@CFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL)
@@ -133,7 +137,7 @@ OBJ= \
 
 
 all: module_objects hilfe
-	$(MAKE) $(MAKE_FLAGS) pike
+	$(MAKE) $(MAKE_FLAGS) $(MAKE_PARALLEL) pike
 	@rm -f dummy_engine >/dev/null 2>&1; echo "" >dummy_engine && \
 	  if cmp $(SRCDIR)/peep_engine.c dummy_engine >/dev/null 2>&1; then \
 	    echo "Warning: No peep_engine." >&2; \
@@ -561,8 +565,8 @@ lobotomize_crypto:
 #
 module_objects: machine.h global.h modules/static_module_makefile modules/dynamic_module_makefile $(SRCDIR)/language.h lib master.pike
 	@( cd modules ; rm remake >/dev/null 2>&1 || : ; \
-	   $(MAKE) $(MAKE_FLAGS) || \
-	     ( test -f remake && $(MAKE) $(MAKE_FLAGS) ) ) || exit $$?
+	   $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \
+	     ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) || exit $$?
 
 language.o: $(SRCDIR)/language.c $(SRCDIR)/object.h $(SRCDIR)/interpret.h $(SRCDIR)/program.h
 
-- 
GitLab