Mercurial > hg > CbC > CbC_llvm
comparison Makefile @ 80:67baa08a3894
update to LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 25 Sep 2014 16:56:18 +0900 |
parents | 54457678186b |
children |
comparison
equal
deleted
inserted
replaced
76:9e74acfe8c42 | 80:67baa08a3894 |
---|---|
13 # 1. Build lib/Support and lib/TableGen, which are used by utils (tblgen). | 13 # 1. Build lib/Support and lib/TableGen, which are used by utils (tblgen). |
14 # 2. Build utils, which is used by IR. | 14 # 2. Build utils, which is used by IR. |
15 # 3. Build IR, which builds the Intrinsics.inc file used by libs. | 15 # 3. Build IR, which builds the Intrinsics.inc file used by libs. |
16 # 4. Build libs, which are needed by llvm-config. | 16 # 4. Build libs, which are needed by llvm-config. |
17 # 5. Build llvm-config, which determines inter-lib dependencies for tools. | 17 # 5. Build llvm-config, which determines inter-lib dependencies for tools. |
18 # 6. Build tools and docs. | 18 # 6. Build tools, docs, and cmake modules. |
19 # | 19 # |
20 # When cross-compiling, there are some things (tablegen) that need to | 20 # When cross-compiling, there are some things (tablegen) that need to |
21 # be build for the build system first. | 21 # be build for the build system first. |
22 | 22 |
23 # If "RC_ProjectName" exists in the environment, and its value is | 23 # If "RC_ProjectName" exists in the environment, and its value is |
29 ifeq ($(BUILD_DIRS_ONLY),1) | 29 ifeq ($(BUILD_DIRS_ONLY),1) |
30 DIRS := lib/Support lib/TableGen utils tools/llvm-config | 30 DIRS := lib/Support lib/TableGen utils tools/llvm-config |
31 OPTIONAL_DIRS := tools/clang/utils/TableGen | 31 OPTIONAL_DIRS := tools/clang/utils/TableGen |
32 else | 32 else |
33 DIRS := lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib \ | 33 DIRS := lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib \ |
34 tools/llvm-config tools docs unittests | 34 tools/llvm-config tools docs cmake unittests |
35 OPTIONAL_DIRS := projects bindings | 35 OPTIONAL_DIRS := projects bindings |
36 endif | 36 endif |
37 | 37 |
38 ifeq ($(BUILD_EXAMPLES),1) | 38 ifeq ($(BUILD_EXAMPLES),1) |
39 OPTIONAL_DIRS += examples | 39 OPTIONAL_DIRS += examples |
110 $(Verb) if [ ! -f BuildTools/Makefile ]; then \ | 110 $(Verb) if [ ! -f BuildTools/Makefile ]; then \ |
111 $(MKDIR) BuildTools; \ | 111 $(MKDIR) BuildTools; \ |
112 cd BuildTools ; \ | 112 cd BuildTools ; \ |
113 unset CFLAGS ; \ | 113 unset CFLAGS ; \ |
114 unset CXXFLAGS ; \ | 114 unset CXXFLAGS ; \ |
115 AR=$(BUILD_AR) ; \ | |
116 AS=$(BUILD_AS) ; \ | |
117 LD=$(BUILD_LD) ; \ | |
118 CC=$(BUILD_CC) ; \ | |
119 CXX=$(BUILD_CXX) ; \ | |
115 unset SDKROOT ; \ | 120 unset SDKROOT ; \ |
116 unset UNIVERSAL_SDK_PATH ; \ | 121 unset UNIVERSAL_SDK_PATH ; \ |
122 configure_opts= ; \ | |
123 if test "$(ENABLE_LIBCPP)" -ne 0 ; then \ | |
124 configure_opts="$$configure_opts --enable-libcpp"; \ | |
125 fi; \ | |
117 $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \ | 126 $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \ |
118 --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE) \ | 127 --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE) \ |
119 --disable-polly ; \ | 128 --disable-polly $$configure_opts; \ |
120 cd .. ; \ | 129 cd .. ; \ |
121 fi; \ | 130 fi; \ |
122 ($(MAKE) -C BuildTools \ | 131 ($(MAKE) -C BuildTools \ |
123 BUILD_DIRS_ONLY=1 \ | 132 BUILD_DIRS_ONLY=1 \ |
124 UNIVERSAL= \ | 133 UNIVERSAL= \ |
125 UNIVERSAL_SDK_PATH= \ | 134 UNIVERSAL_SDK_PATH= \ |
126 SDKROOT= \ | 135 SDKROOT= \ |
127 TARGET_NATIVE_ARCH="$(TARGET_NATIVE_ARCH)" \ | 136 TARGET_NATIVE_ARCH="$(TARGET_NATIVE_ARCH)" \ |
128 TARGETS_TO_BUILD="$(TARGETS_TO_BUILD)" \ | 137 TARGETS_TO_BUILD="$(TARGETS_TO_BUILD)" \ |
138 TARGET_LIBS="$(LIBS)" \ | |
129 ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \ | 139 ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \ |
130 ENABLE_PROFILING=$(ENABLE_PROFILING) \ | 140 ENABLE_PROFILING=$(ENABLE_PROFILING) \ |
131 ENABLE_COVERAGE=$(ENABLE_COVERAGE) \ | 141 ENABLE_COVERAGE=$(ENABLE_COVERAGE) \ |
132 DISABLE_ASSERTIONS=$(DISABLE_ASSERTIONS) \ | 142 DISABLE_ASSERTIONS=$(DISABLE_ASSERTIONS) \ |
133 ENABLE_EXPENSIVE_CHECKS=$(ENABLE_EXPENSIVE_CHECKS) \ | 143 ENABLE_EXPENSIVE_CHECKS=$(ENABLE_EXPENSIVE_CHECKS) \ |