blob: 2a0b5bc9dd40b93568746695202c0c735f3fa0e7 [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 := ..
Stephen Hines176edba2014-12-01 14:53:08 -080017PARALLEL_DIRS = CodeGen Basic Lex Driver Format ASTMatchers AST Tooling \
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070018 Rewrite Sema
Roman Divackyfc2929f2012-12-13 16:09:42 +000019
20include $(CLANG_LEVEL)/../..//Makefile.config
21
Jordan Rosee6385032013-08-22 15:50:02 +000022ifeq ($(ENABLE_CLANG_ARCMT),1)
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070023PARALLEL_DIRS += Frontend libclang StaticAnalyzer
Roman Divackyfc2929f2012-12-13 16:09:42 +000024endif
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000025
26endif # CLANG_LEVEL
27
28include $(CLANG_LEVEL)/Makefile
29
30ifndef IS_UNITTEST_LEVEL
31
Daniel Dunbar9acd0d92011-02-04 17:12:27 +000032MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000033include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
34
35endif # IS_UNITTEST_LEVEL