Daniel Dunbar | fec7c2a | 2009-01-19 19:20:01 +0000 | [diff] [blame] | 1 | ##===- tools/Makefile --------------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 10 | CLANG_LEVEL := .. |
Chandler Carruth | 2689a08 | 2012-08-09 00:05:27 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 12 | include $(CLANG_LEVEL)/../../Makefile.config |
Chris Lattner | b196ef7 | 2010-03-07 00:17:28 +0000 | [diff] [blame] | 13 | |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 14 | DIRS := |
| 15 | PARALLEL_DIRS := driver diagtool |
Jordan Rose | d771b44 | 2013-07-03 16:20:29 +0000 | [diff] [blame] | 16 | |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 17 | ifeq ($(ENABLE_CLANG_REWRITER),1) |
| 18 | PARALLEL_DIRS += clang-format |
| 19 | endif |
| 20 | |
Jordan Rose | 92e9d2b | 2013-08-22 16:12:04 +0000 | [diff] [blame] | 21 | ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1) |
| 22 | PARALLEL_DIRS += clang-check |
| 23 | endif |
| 24 | |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 25 | ifeq ($(ENABLE_CLANG_ARCMT), 1) |
| 26 | DIRS += libclang c-index-test c-arcmt-test |
| 27 | PARALLEL_DIRS += arcmt-test |
Jordan Rose | d771b44 | 2013-07-03 16:20:29 +0000 | [diff] [blame] | 28 | endif |
Chandler Carruth | af310b1 | 2012-08-09 20:21:38 +0000 | [diff] [blame] | 29 | |
| 30 | # Recurse into the extra repository of tools if present. |
Eric Christopher | f66ef17 | 2013-06-25 00:21:29 +0000 | [diff] [blame] | 31 | OPTIONAL_PARALLEL_DIRS := extra |
Chandler Carruth | af310b1 | 2012-08-09 20:21:38 +0000 | [diff] [blame] | 32 | |
Bill Wendling | 2bf8980 | 2012-10-03 08:39:19 +0000 | [diff] [blame] | 33 | ifeq ($(BUILD_CLANG_ONLY),YES) |
Bob Wilson | c3ba339 | 2013-07-26 21:08:22 +0000 | [diff] [blame] | 34 | DIRS := libclang c-index-test |
| 35 | PARALLEL_DIRS := driver |
| 36 | OPTIONAL_PARALLEL_DIRS := |
Bill Wendling | 2bf8980 | 2012-10-03 08:39:19 +0000 | [diff] [blame] | 37 | endif |
| 38 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 39 | include $(CLANG_LEVEL)/Makefile |