summaryrefslogtreecommitdiff
path: root/toolchain/gmp
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-02-24 01:05:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-24 19:19:23 +0100
commitb96814ed6f6bbc7ec650c513f2b27f8b1dcb8ac7 (patch)
tree9a726a5b2daf1eb101c8036a0f3af8d35b1caece /toolchain/gmp
parentfde11aa6b23ac7e16931a9825166b86998e4fbe3 (diff)
toolchain: enable parallel building for gcc, glibc, binutils, gmp and mpfr
Diffstat (limited to 'toolchain/gmp')
-rw-r--r--toolchain/gmp/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolchain/gmp/Makefile b/toolchain/gmp/Makefile
index bbe26f14d..c31e76483 100644
--- a/toolchain/gmp/Makefile
+++ b/toolchain/gmp/Makefile
@@ -6,6 +6,10 @@ include ../rules.mk
include Makefile.inc
include ${TOPDIR}/mk/buildhlp.mk
+ifeq (${ADK_MAKE_PARALLEL},y)
+GMP_MAKEOPTS+= -j${ADK_MAKE_JOBS}
+endif
+
$(WRKBUILD)/.headers:
$(WRKBUILD)/.configured:
(cd $(WRKBUILD); \
@@ -20,7 +24,7 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
- $(MAKE) -C $(WRKBUILD) all
+ $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled