1 ##===- tools/Makefile --------------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 # Build clang if present.
13 OPTIONAL_PARALLEL_DIRS := clang
15 # NOTE: The tools are organized into five groups of four consisting of one
16 # large and three small executables. This is done to minimize memory load
17 # in parallel builds. Please retain this ordering.
19 PARALLEL_DIRS := opt llvm-as llvm-dis \
20 llc llvm-ranlib llvm-ar llvm-nm \
21 llvm-ld llvm-prof llvm-link \
23 bugpoint llvm-bcanalyzer llvm-stub \
27 # Let users override the set of tools to build from the command line.
29 OPTIONAL_PARALLEL_DIRS :=
30 PARALLEL_DIRS := $(ONLY_TOOLS)
33 include $(LEVEL)/Makefile.config
35 ifeq ($(ENABLE_PIC),1)
42 # No support for lto / gold on windows targets
43 ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
44 PARALLEL_DIRS := $(filter-out lto gold, $(DIRS))
47 # Only build edis if X86 target support is enabled.
48 ifeq ($(filter $(TARGETS_TO_BUILD), X86),)
49 PARALLEL_DIRS := $(filter-out edis, $(PARALLEL_DIRS))
52 include $(LEVEL)/Makefile.common