summaryrefslogtreecommitdiff
path: root/m5475-atari-mint/Makefile
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 /m5475-atari-mint/Makefile
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 'm5475-atari-mint/Makefile')
-rw-r--r--m5475-atari-mint/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/m5475-atari-mint/Makefile b/m5475-atari-mint/Makefile
index a7b0df1..cc6543c 100644
--- a/m5475-atari-mint/Makefile
+++ b/m5475-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 := m5475-atari-mint
@@ -143,9 +145,9 @@ $(BUILDSTEPS)/bootstrap-compiler.d: $(BUILDSTEPS)/srcdir-step3.d $(BUILDSTEPS)/b
--enable-checking=no --enable-c99 \
--enable-maintainer-mode --without-headers \
--with-arch=cf
- 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 $@
@@ -203,7 +205,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 $@