Jeffrey Yasskin | 7a17889 | 2011-02-03 04:51:52 +0000 | [diff] [blame] | 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 | |
| 13 | ifndef CLANG_LEVEL |
| 14 | |
| 15 | IS_UNITTEST_LEVEL := 1 |
| 16 | CLANG_LEVEL := .. |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 17 | PARALLEL_DIRS = CodeGen Basic Lex Driver Format ASTMatchers AST Tooling \ |
Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 18 | Rewrite Sema |
Roman Divacky | fc2929f | 2012-12-13 16:09:42 +0000 | [diff] [blame] | 19 | |
| 20 | include $(CLANG_LEVEL)/../..//Makefile.config |
| 21 | |
Jordan Rose | e638503 | 2013-08-22 15:50:02 +0000 | [diff] [blame] | 22 | ifeq ($(ENABLE_CLANG_ARCMT),1) |
Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 23 | PARALLEL_DIRS += Frontend libclang StaticAnalyzer |
Roman Divacky | fc2929f | 2012-12-13 16:09:42 +0000 | [diff] [blame] | 24 | endif |
Jeffrey Yasskin | 7a17889 | 2011-02-03 04:51:52 +0000 | [diff] [blame] | 25 | |
| 26 | endif # CLANG_LEVEL |
| 27 | |
| 28 | include $(CLANG_LEVEL)/Makefile |
| 29 | |
| 30 | ifndef IS_UNITTEST_LEVEL |
| 31 | |
Daniel Dunbar | 9acd0d9 | 2011-02-04 17:12:27 +0000 | [diff] [blame] | 32 | MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1 |
Jeffrey Yasskin | 7a17889 | 2011-02-03 04:51:52 +0000 | [diff] [blame] | 33 | include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest |
| 34 | |
| 35 | endif # IS_UNITTEST_LEVEL |