Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | CLANG_ROOT_PATH := $(LOCAL_PATH) |
David Gross | 16f3483 | 2015-06-12 14:28:01 -0700 | [diff] [blame] | 3 | |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 4 | .PHONY: clang-toolchain-minimal clang-toolchain-full llvm-tools |
| 5 | clang-toolchain-minimal: \ |
| 6 | clang |
| 7 | |
| 8 | clang-toolchain-full: \ |
| 9 | clang-toolchain-minimal \ |
| 10 | asan_test \ |
| 11 | clang-check \ |
| 12 | clang-format \ |
| 13 | clang-tidy \ |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 14 | FileCheck \ |
| 15 | llvm-as \ |
| 16 | llvm-dis \ |
| 17 | llvm-link \ |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 18 | llvm-symbolizer \ |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 19 | LLVMgold \ |
| 20 | libprofile_rt |
| 21 | |
| 22 | llvm-tools: \ |
| 23 | bugpoint \ |
| 24 | BugpointPasses \ |
| 25 | count \ |
| 26 | llc \ |
| 27 | lli \ |
| 28 | lli-child-target \ |
| 29 | LLVMHello \ |
| 30 | llvm-ar \ |
| 31 | llvm-as \ |
| 32 | llvm-bcanalyzer \ |
| 33 | llvm-config \ |
| 34 | llvm-cov \ |
| 35 | llvm-c-test \ |
| 36 | llvm-cxxdump \ |
| 37 | llvm-diff \ |
| 38 | llvm-dis \ |
| 39 | llvm-dsymutil \ |
| 40 | llvm-dwarfdump \ |
| 41 | llvm-dwp \ |
| 42 | llvm-extract \ |
| 43 | llvm-link \ |
| 44 | llvm-lto \ |
| 45 | llvm-mc \ |
| 46 | llvm-mcmarkup \ |
| 47 | llvm-nm \ |
| 48 | llvm-objdump \ |
| 49 | llvm-pdbdump \ |
| 50 | llvm-profdata \ |
| 51 | llvm-readobj \ |
| 52 | llvm-rtdyld \ |
| 53 | llvm-size \ |
| 54 | llvm-split \ |
| 55 | llvm-symbolizer \ |
| 56 | not \ |
| 57 | obj2yaml \ |
| 58 | opt \ |
| 59 | sancov \ |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 60 | sanstats \ |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 61 | verify-uselistorder \ |
| 62 | yaml2obj \ |
| 63 | yaml-bench |
| 64 | |
| 65 | ifneq ($(HOST_OS),darwin) |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 66 | clang-toolchain-minimal: \ |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 67 | libasan \ |
| 68 | libasan_32 \ |
| 69 | libasan_cxx \ |
| 70 | libasan_cxx_32 \ |
| 71 | libprofile_rt_32 \ |
| 72 | libtsan \ |
| 73 | libtsan_cxx \ |
| 74 | libubsan_standalone \ |
| 75 | libubsan_standalone_32 \ |
| 76 | libubsan_standalone_cxx \ |
| 77 | libubsan_standalone_cxx_32 |
| 78 | |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 79 | clang-toolchain-full: \ |
| 80 | host_cross_clang \ |
| 81 | host_cross_clang_64 \ |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 82 | |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame] | 83 | # Build libomp on Linux host. Build modules for the host and some specific |
| 84 | # targets. |
| 85 | clang-toolchain-full: libomp |
| 86 | ifneq (,$(filter arm arm64 x86 x86_64,$(TARGET_ARCH))) |
| 87 | clang-toolchain-full: libomp-$(TARGET_ARCH) |
| 88 | endif # ifneq (,$(filter arm arm64 x86 x86_64,$(TARGET_ARCH))) |
| 89 | |
| 90 | endif # ifneq ($(HOST_OS),darwin) |
| 91 | |
| 92 | ifneq (,$(filter arm arm64 x86 mips mips64,$(TARGET_ARCH))) |
| 93 | clang-toolchain-minimal: \ |
| 94 | $(ADDRESS_SANITIZER_RUNTIME_LIBRARY) \ |
| 95 | $(UBSAN_RUNTIME_LIBRARY) |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 96 | |
| 97 | endif |