xref: /minix3/external/bsd/llvm/dist/clang/unittests/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc##===- unittests/Makefile ----------------------------------*- Makefile -*-===##
2f4a2713aSLionel Sambuc#
3f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4f4a2713aSLionel Sambuc#
5f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7f4a2713aSLionel Sambuc#
8f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9f4a2713aSLionel Sambuc
10f4a2713aSLionel Sambuc# If CLANG_LEVEL is not set, then we are the top-level Makefile. Otherwise, we
11f4a2713aSLionel Sambuc# are being included from a subdirectory makefile.
12f4a2713aSLionel Sambuc
13f4a2713aSLionel Sambucifndef CLANG_LEVEL
14f4a2713aSLionel Sambuc
15f4a2713aSLionel SambucIS_UNITTEST_LEVEL := 1
16f4a2713aSLionel SambucCLANG_LEVEL := ..
17*0a6a1f1dSLionel SambucPARALLEL_DIRS = CodeGen Basic Lex Driver Format ASTMatchers AST Tooling \
18*0a6a1f1dSLionel Sambuc	        Sema
19f4a2713aSLionel Sambuc
20f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/../..//Makefile.config
21f4a2713aSLionel Sambuc
22f4a2713aSLionel Sambucifeq ($(ENABLE_CLANG_ARCMT),1)
23*0a6a1f1dSLionel SambucPARALLEL_DIRS += Frontend libclang
24f4a2713aSLionel Sambucendif
25f4a2713aSLionel Sambuc
26f4a2713aSLionel Sambucendif  # CLANG_LEVEL
27f4a2713aSLionel Sambuc
28f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
29f4a2713aSLionel Sambuc
30f4a2713aSLionel Sambucifndef IS_UNITTEST_LEVEL
31f4a2713aSLionel Sambuc
32f4a2713aSLionel SambucMAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
33f4a2713aSLionel Sambucinclude $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
34f4a2713aSLionel Sambuc
35f4a2713aSLionel Sambucendif  # IS_UNITTEST_LEVEL
36