1##===- unittests/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# If CLANG_LEVEL is not set, then we are the top-level Makefile. Otherwise, we
11# are being included from a subdirectory makefile.
12
13ifndef CLANG_LEVEL
14
15IS_UNITTEST_LEVEL := 1
16CLANG_LEVEL := ..
17PARALLEL_DIRS = Basic Lex Driver libclang
18
19include $(CLANG_LEVEL)/../..//Makefile.config
20
21ifeq ($(ENABLE_CLANG_REWRITER),1)
22PARALLEL_DIRS += Format ASTMatchers AST Tooling Sema
23endif
24
25ifeq ($(ENABLE_CLANG_ARCMT),1)
26PARALLEL_DIRS += Frontend
27endif
28
29endif  # CLANG_LEVEL
30
31include $(CLANG_LEVEL)/Makefile
32
33ifndef IS_UNITTEST_LEVEL
34
35MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
36include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
37
38endif  # IS_UNITTEST_LEVEL
39