Home | History | Annotate | Download | only in unittests
      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 := ..
     17 PARALLEL_DIRS = Basic Lex
     18 
     19 include $(CLANG_LEVEL)/../..//Makefile.config
     20 
     21 ifeq ($(ENABLE_CLANG_REWRITER),1)
     22 PARALLEL_DIRS += Format
     23 endif
     24 
     25 ifeq ($(ENABLE_CLANG_REWRITER),1)
     26 PARALLEL_DIRS += ASTMatchers AST Tooling
     27 endif
     28 
     29 ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1)
     30 PARALLEL_DIRS += Frontend
     31 endif
     32 
     33 endif  # CLANG_LEVEL
     34 
     35 include $(CLANG_LEVEL)/Makefile
     36 
     37 ifndef IS_UNITTEST_LEVEL
     38 
     39 MAKEFILE_UNITTEST_NO_INCLUDE_COMMON := 1
     40 include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
     41 
     42 endif  # IS_UNITTEST_LEVEL
     43