blob: 2ee12992f23ff2d4b9499d45af6cbb199bb5dadf [file] [log] [blame]
Daniel Dunbarfec7c2a2009-01-19 19:20:01 +00001##===- 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 Dunbarafed0992010-06-08 20:34:18 +000010CLANG_LEVEL := ..
Chandler Carruth2689a082012-08-09 00:05:27 +000011
Daniel Dunbarafed0992010-06-08 20:34:18 +000012include $(CLANG_LEVEL)/../../Makefile.config
Chris Lattnerb196ef72010-03-07 00:17:28 +000013
Jordan Rosee6385032013-08-22 15:50:02 +000014DIRS :=
Stephen Hines176edba2014-12-01 14:53:08 -080015PARALLEL_DIRS := clang-format driver diagtool
Jordan Rosee6385032013-08-22 15:50:02 +000016
Jordan Rose92e9d2b2013-08-22 16:12:04 +000017ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1)
18 PARALLEL_DIRS += clang-check
19endif
20
Jordan Rosee6385032013-08-22 15:50:02 +000021ifeq ($(ENABLE_CLANG_ARCMT), 1)
22 DIRS += libclang c-index-test c-arcmt-test
23 PARALLEL_DIRS += arcmt-test
Jordan Rosed771b442013-07-03 16:20:29 +000024endif
Chandler Carruthaf310b12012-08-09 20:21:38 +000025
26# Recurse into the extra repository of tools if present.
Eric Christopherf66ef172013-06-25 00:21:29 +000027OPTIONAL_PARALLEL_DIRS := extra
Chandler Carruthaf310b12012-08-09 20:21:38 +000028
Bill Wendling2bf89802012-10-03 08:39:19 +000029ifeq ($(BUILD_CLANG_ONLY),YES)
Bob Wilsonc3ba3392013-07-26 21:08:22 +000030 DIRS := libclang c-index-test
31 PARALLEL_DIRS := driver
32 OPTIONAL_PARALLEL_DIRS :=
Bill Wendling2bf89802012-10-03 08:39:19 +000033endif
34
Daniel Dunbarafed0992010-06-08 20:34:18 +000035include $(CLANG_LEVEL)/Makefile