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