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