summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-17 21:23:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-17 21:23:29 +0100
commite80e2408d4e54999784338182527ec16949addd8 (patch)
treeda387582912c3d0fc94d5d9f178523a2b97e8c7a /toolchain/Makefile
parent2c564b6fc8d396c5b56eab073d5ac89fc6b3cce1 (diff)
llvm: update to 4.0.0, allow to compile musl with it
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index e90feb42d..fb46789f2 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -12,13 +12,13 @@
include $(ADK_TOPDIR)/rules.mk
-TARGETS:=binutils gmp mpfr mpc
-
ifeq ($(ADK_BUILD_COMPILER_GCC),y)
+TARGETS:=binutils gmp mpfr mpc
TARGETS+=gcc
COMPILER:=gcc
endif
ifeq ($(ADK_BUILD_COMPILER_LLVM),y)
+TARGETS:=binutils
TARGETS+=llvm
COMPILER:=llvm
endif
@@ -67,7 +67,13 @@ clean: $(TARGETS_CLEAN)
download: $(DOWNLOAD)
final: $(FINAL)
+
+ifeq ($(ADK_BUILD_COMPILER_LLVM),y)
+$(COMPILER)-configure: binutils-install
+else
$(COMPILER)-configure: binutils-install gmp-install mpfr-install mpc-install
+endif
+
ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
$(CLIB)-install: $(COMPILER)-configure
else