blob: 66c006232da5be4359eef744f8467ce8c1e60449 [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 := ..
Argyrios Kyrtzidis19d5aea2012-01-19 15:59:01 +000017PARALLEL_DIRS = Basic Frontend Lex
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000018
19endif # CLANG_LEVEL
20
21include $(CLANG_LEVEL)/Makefile
22
23ifndef IS_UNITTEST_LEVEL
24
Daniel Dunbar9acd0d92011-02-04 17:12:27 +000025MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
Jeffrey Yasskin7a178892011-02-03 04:51:52 +000026include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
27
28endif # IS_UNITTEST_LEVEL