summaryrefslogtreecommitdiff
path: root/buildlib/defaults.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:23 +0000
commitf43579d10c48a2a21c8f418a2a1a7de118b52429 (patch)
treec216058162ad69f36957a47c1f8996ec1fe54476 /buildlib/defaults.mak
parentc0f453871317ecccff95b132a093e30288555036 (diff)
Removed the tl_* macros, as dpkg doesn't use them, so w...
Author: doogie Date: 1999-12-10 03:20:21 GMT Removed the tl_* macros, as dpkg doesn't use them, so why should we? Added smp configure support detection, so on cpu >= 2, we compile in parallel. The default multiplier is 2(2 processes per cpu) on machines with more than one cpu. Non-smp boxen compile 1 process at a time.
Diffstat (limited to 'buildlib/defaults.mak')
-rw-r--r--buildlib/defaults.mak13
1 files changed, 13 insertions, 0 deletions
diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak
index d04b67ffa..3e145f673 100644
--- a/buildlib/defaults.mak
+++ b/buildlib/defaults.mak
@@ -134,3 +134,16 @@ else
endef
endif
endif
+
+ifeq ($(NUM_PROCS),1)
+ PARALLEL_RUN=no
+endif
+
+ifndef PARALLEL_RUN
+ PARALLEL_RUN=yes
+ .EXPORT: PARALLEL_RUN
+ ifneq ($(NUM_PROCS),)
+# handle recursion
+ MAKEFLAGS += -j $(NUM_PROCS)
+ endif
+endif