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
10CLANG_LEVEL := ..
11
12include $(CLANG_LEVEL)/../../Makefile.config
13
14DIRS := 
15PARALLEL_DIRS := driver diagtool
16
17ifeq ($(ENABLE_CLANG_REWRITER),1)
18  PARALLEL_DIRS += clang-format
19endif
20
21ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1)
22  PARALLEL_DIRS += clang-check
23endif
24
25ifeq ($(ENABLE_CLANG_ARCMT), 1)
26  DIRS += libclang c-index-test c-arcmt-test
27  PARALLEL_DIRS += arcmt-test
28endif
29
30# Recurse into the extra repository of tools if present.
31OPTIONAL_PARALLEL_DIRS := extra
32
33ifeq ($(BUILD_CLANG_ONLY),YES)
34  DIRS := libclang c-index-test
35  PARALLEL_DIRS := driver
36  OPTIONAL_PARALLEL_DIRS :=
37endif
38
39include $(CLANG_LEVEL)/Makefile
40