1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
8 include ${ADK_TOPDIR}/mk
/buildhlp.mk
10 BUILD_DIR_INITIAL
:= $(WRKBUILD
)-initial
11 BUILD_DIR_FINAL
:= $(WRKBUILD
)-final
15 $(BUILD_DIR_INITIAL
)/.configured
:
16 (cd
$(DL_DIR
) && wget http
://llvm.org
/releases
/3.8.0/cfe-3.8
.0.src.
tar.xz
)
17 (cd
$(DL_DIR
) && wget http
://llvm.org
/releases
/3.8.0/compiler-rt-3.8
.0.src.
tar.xz
)
18 (cd
$(WRKBUILD
)/tools
&& tar xvf
$(DL_DIR
)/cfe-3.8
.0.src.
tar.xz
&& mv cfe-3.8
.0.src clang
)
19 (cd
$(WRKBUILD
)/projects
&& tar xvf
$(DL_DIR
)/compiler-rt-3.8
.0.src.
tar.xz
&& mv compiler-rt-3.8
.0.src compiler-rt
)
20 mkdir
-p
$(BUILD_DIR_INITIAL
)
21 cd
$(BUILD_DIR_INITIAL
); \
23 cmake
-DCMAKE_BUILD_TYPE
=Release \
24 -DCMAKE_INSTALL_PREFIX
=$(TOOLCHAIN_DIR
)/usr \
25 -DLLVM_DEFAULT_TARGET_TRIPLE
="arm-none-eabi" \
26 -DCMAKE_CXX_FLAGS
="-std=c++11" \
27 -DLLVM_TARGETS_TO_BUILD
=$(LLVM_TARGETS
) \
31 $(BUILD_DIR_INITIAL
)/.compiled
: $(BUILD_DIR_INITIAL
)/.configured
32 PATH
='$(TARGET_PATH)' \
33 $(MAKE
) -C
$(BUILD_DIR_INITIAL
) all
36 $(WRKBUILD
)/.configured
: $(BUILD_DIR_INITIAL
)/.compiled
37 PATH
='$(TARGET_PATH)' \
38 $(MAKE
) -C
$(BUILD_DIR_INITIAL
) install
41 $(WRKBUILD
)/.compiled
:
44 $(WRKBUILD
)/.installed
: $(WRKBUILD
)/.compiled
50 include ${ADK_TOPDIR}/mk
/toolchain.mk