xref: /minix3/external/bsd/llvm/dist/clang/tools/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc##===- tools/Makefile --------------------------------------*- Makefile -*-===##
2f4a2713aSLionel Sambuc#
3f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4f4a2713aSLionel Sambuc#
5f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7f4a2713aSLionel Sambuc#
8f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9f4a2713aSLionel Sambuc
10f4a2713aSLionel SambucCLANG_LEVEL := ..
11f4a2713aSLionel Sambuc
12f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/../../Makefile.config
13f4a2713aSLionel Sambuc
14f4a2713aSLionel SambucDIRS :=
15*0a6a1f1dSLionel SambucPARALLEL_DIRS := clang-format driver diagtool
16f4a2713aSLionel Sambuc
17f4a2713aSLionel Sambucifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1)
18f4a2713aSLionel Sambuc  PARALLEL_DIRS += clang-check
19f4a2713aSLionel Sambucendif
20f4a2713aSLionel Sambuc
21f4a2713aSLionel Sambucifeq ($(ENABLE_CLANG_ARCMT), 1)
22f4a2713aSLionel Sambuc  DIRS += libclang c-index-test c-arcmt-test
23f4a2713aSLionel Sambuc  PARALLEL_DIRS += arcmt-test
24f4a2713aSLionel Sambucendif
25f4a2713aSLionel Sambuc
26f4a2713aSLionel Sambuc# Recurse into the extra repository of tools if present.
27f4a2713aSLionel SambucOPTIONAL_PARALLEL_DIRS := extra
28f4a2713aSLionel Sambuc
29f4a2713aSLionel Sambucifeq ($(BUILD_CLANG_ONLY),YES)
30f4a2713aSLionel Sambuc  DIRS := libclang c-index-test
31f4a2713aSLionel Sambuc  PARALLEL_DIRS := driver
32f4a2713aSLionel Sambuc  OPTIONAL_PARALLEL_DIRS :=
33f4a2713aSLionel Sambucendif
34f4a2713aSLionel Sambuc
35f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
36