blob: 94032d20b032c5ef392f75e63f04bac796a5547b [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 :=
15PARALLEL_DIRS := driver diagtool
Jordan Rosed771b442013-07-03 16:20:29 +000016
Jordan Rosee6385032013-08-22 15:50:02 +000017ifeq ($(ENABLE_CLANG_REWRITER),1)
18 PARALLEL_DIRS += clang-format
19endif
20
Jordan Rose92e9d2b2013-08-22 16:12:04 +000021ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1)
22 PARALLEL_DIRS += clang-check
23endif
24
Jordan Rosee6385032013-08-22 15:50:02 +000025ifeq ($(ENABLE_CLANG_ARCMT), 1)
26 DIRS += libclang c-index-test c-arcmt-test
27 PARALLEL_DIRS += arcmt-test
Jordan Rosed771b442013-07-03 16:20:29 +000028endif
Chandler Carruthaf310b12012-08-09 20:21:38 +000029
30# Recurse into the extra repository of tools if present.
Eric Christopherf66ef172013-06-25 00:21:29 +000031OPTIONAL_PARALLEL_DIRS := extra
Chandler Carruthaf310b12012-08-09 20:21:38 +000032
Bill Wendling2bf89802012-10-03 08:39:19 +000033ifeq ($(BUILD_CLANG_ONLY),YES)
Bob Wilsonc3ba3392013-07-26 21:08:22 +000034 DIRS := libclang c-index-test
35 PARALLEL_DIRS := driver
36 OPTIONAL_PARALLEL_DIRS :=
Bill Wendling2bf89802012-10-03 08:39:19 +000037endif
38
Daniel Dunbarafed0992010-06-08 20:34:18 +000039include $(CLANG_LEVEL)/Makefile