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