blob: d0dfe471d159db3dfa40d028cdb69956c6633bde [file] [log] [blame]
Jeffrey Yasskin7a178892011-02-03 04:51:52 +00001##===- 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 := ..
Roman Divackyfc2929f2012-12-13 16:09:42 +000017PARALLEL_DIRS = Basic Lex
18
19include $(CLANG_LEVEL)/../..//Makefile.config
20
21ifeq ($(ENABLE_CLANG_REWRITER),1)
Jordan Rosee6385032013-08-22 15:50:02 +000022PARALLEL_DIRS += Format ASTMatchers AST Tooling Sema
Roman Divackyfc2929f2012-12-13 16:09:42 +000023endif
24
Jordan Rosee6385032013-08-22 15:50:02 +000025ifeq ($(ENABLE_CLANG_ARCMT),1)
Roman Divackyfc2929f2012-12-13 16:09:42 +000026PARALLEL_DIRS += Frontend
27endif
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000028
29endif # CLANG_LEVEL
30
31include $(CLANG_LEVEL)/Makefile
32
33ifndef IS_UNITTEST_LEVEL
34
Daniel Dunbar9acd0d92011-02-04 17:12:27 +000035MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000036include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
37
38endif # IS_UNITTEST_LEVEL