blob: e01a6ac463bb6fcba04e9fbe314da910cbe8f2b9 [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)
22PARALLEL_DIRS += Format
23endif
24
25ifeq ($(ENABLE_CLANG_REWRITER),1)
26PARALLEL_DIRS += ASTMatchers AST Tooling
27endif
28
29ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1)
30PARALLEL_DIRS += Frontend
31endif
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000032
33endif # CLANG_LEVEL
34
35include $(CLANG_LEVEL)/Makefile
36
37ifndef IS_UNITTEST_LEVEL
38
Daniel Dunbar9acd0d92011-02-04 17:12:27 +000039MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000040include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
41
42endif # IS_UNITTEST_LEVEL