X86: Fix encoding for TEST64rr.
[llvm.git] / tools / Makefile
blob58130570d7aace5622698521406f6be43f80524e
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 ##===----------------------------------------------------------------------===##
10 LEVEL := ..
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.
18 DIRS := llvm-config
19 PARALLEL_DIRS := opt llvm-as llvm-dis \
20 llc llvm-ranlib llvm-ar llvm-nm \
21 llvm-ld llvm-prof llvm-link \
22 lli llvm-extract \
23 bugpoint llvm-bcanalyzer llvm-stub \
24 llvm-mc llvmc
27 # Let users override the set of tools to build from the command line.
28 ifdef ONLY_TOOLS
29 OPTIONAL_PARALLEL_DIRS :=
30 PARALLEL_DIRS := $(ONLY_TOOLS)
31 endif
33 include $(LEVEL)/Makefile.config
35 # These libraries build as dynamic libraries (.dylib /.so), they can only be
36 # built if ENABLE_PIC is set.
37 ifeq ($(ENABLE_PIC),1)
38 # No support for dynamic libraries on windows targets.
39 ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
40 PARALLEL_DIRS += edis
42 # gold only builds if binutils is around. It requires "lto" to build before
43 # it so it is added to DIRS.
44 ifdef BINUTILS_INCDIR
45 DIRS += lto gold
46 else
47 PARALLEL_DIRS += lto
48 endif
49 endif
50 endif
52 # Only build edis if X86 target support is enabled.
53 ifeq ($(filter $(TARGETS_TO_BUILD), X86),)
54 PARALLEL_DIRS := $(filter-out edis, $(PARALLEL_DIRS))
55 endif
57 include $(LEVEL)/Makefile.common