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 := |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 15 | PARALLEL_DIRS := clang-format driver diagtool |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 16 | |
Jordan Rose | 92e9d2b | 2013-08-22 16:12:04 +0000 | [diff] [blame] | 17 | ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1) |
| 18 | PARALLEL_DIRS += clang-check |
| 19 | endif |
| 20 | |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 21 | ifeq ($(ENABLE_CLANG_ARCMT), 1) |
| 22 | DIRS += libclang c-index-test c-arcmt-test |
| 23 | PARALLEL_DIRS += arcmt-test |
Jordan Rose | d771b44 | 2013-07-03 16:20:29 +0000 | [diff] [blame] | 24 | endif |
Chandler Carruth | af310b1 | 2012-08-09 20:21:38 +0000 | [diff] [blame] | 25 | |
| 26 | # Recurse into the extra repository of tools if present. |
Eric Christopher | f66ef17 | 2013-06-25 00:21:29 +0000 | [diff] [blame] | 27 | OPTIONAL_PARALLEL_DIRS := extra |
Chandler Carruth | af310b1 | 2012-08-09 20:21:38 +0000 | [diff] [blame] | 28 | |
Bill Wendling | 2bf8980 | 2012-10-03 08:39:19 +0000 | [diff] [blame] | 29 | ifeq ($(BUILD_CLANG_ONLY),YES) |
Bob Wilson | c3ba339 | 2013-07-26 21:08:22 +0000 | [diff] [blame] | 30 | DIRS := libclang c-index-test |
| 31 | PARALLEL_DIRS := driver |
| 32 | OPTIONAL_PARALLEL_DIRS := |
Bill Wendling | 2bf8980 | 2012-10-03 08:39:19 +0000 | [diff] [blame] | 33 | endif |
| 34 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 35 | include $(CLANG_LEVEL)/Makefile |