summaryrefslogtreecommitdiff
path: root/m68k-atari-mint
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2018-06-03 01:24:01 +0200
committerVincent Sanders <vince@kyllikki.org>2019-02-22 08:57:40 +0000
commit19fef6facae17a73f6549533266f445273b8a702 (patch)
treef9820bde48a22196570d6af2cef5883799cfe525 /m68k-atari-mint
parent92a826bc60cefa6b9b222381d724340ecf615f97 (diff)
downloadtoolchains-19fef6facae17a73f6549533266f445273b8a702.tar.gz
toolchains-19fef6facae17a73f6549533266f445273b8a702.tar.bz2
atari-mint: allow parallel build of binutils and gcc
by passing BUILD_SMP=-jN to make
Diffstat (limited to 'm68k-atari-mint')
-rw-r--r--m68k-atari-mint/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/m68k-atari-mint/Makefile b/m68k-atari-mint/Makefile
index 8c05e5b..68fdd03 100644
--- a/m68k-atari-mint/Makefile
+++ b/m68k-atari-mint/Makefile
@@ -62,6 +62,8 @@ SRCDIR := $(BUILDDIR)/srcdir
GCC_SRCDIR := $(SRCDIR)/gcc
BINUTILS_SRCDIR := $(SRCDIR)/binutils
MINTBIN_SRCDIR := $(SRCDIR)/mintbin
+# optionally pass -jN here
+BUILD_SMP :=
TARGET_NAME := m68k-atari-mint
@@ -142,9 +144,9 @@ $(BUILDSTEPS)/bootstrap-compiler.d: $(BUILDSTEPS)/srcdir-step3.d $(BUILDSTEPS)/b
--disable-nls --enable-languages=c \
--enable-checking=no --enable-c99 \
--enable-maintainer-mode --without-headers
- cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make all-gcc
+ cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make $(BUILD_SMP) all-gcc
cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make install-gcc
- cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make all-target-libgcc
+ cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make $(BUILD_SMP) all-target-libgcc
cd $(BUILDDIR) && $(GCC_ENV_PARAMS) make install-target-libgcc
touch $@
@@ -202,7 +204,7 @@ $(BUILDSTEPS)/mintbin-srcdir.d: $(SOURCESDIR)/$(UPSTREAM_MINTBIN_TARBALL)
$(BUILDSTEPS)/binutils.d: $(BUILDSTEPS)/binutils-srcdir.d
mkdir -p $(BUILDDIR)/binutils
cd $(BUILDDIR)/binutils && $(BINUTILS_SRCDIR)/configure --prefix=$(PREFIX) --target=$(TARGET_NAME) --disable-nls
- cd $(BUILDDIR)/binutils && make
+ cd $(BUILDDIR)/binutils && make $(BUILD_SMP)
cd $(BUILDDIR)/binutils && make install
touch $@