Have SCEV turn sext(x) into zext(x) when x is s>= 0. This applies many times in
[llvm.git] / tools / Makefile
blob71c2f53b32391334c56954d3a32b01ed229a7083
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 llvm-mc \
23 bugpoint llvm-bcanalyzer llvm-stub \
24 llvmc llvm-diff macho-dump llvm-objdump
26 # Let users override the set of tools to build from the command line.
27 ifdef ONLY_TOOLS
28 OPTIONAL_PARALLEL_DIRS :=
29 PARALLEL_DIRS := $(ONLY_TOOLS)
30 endif
32 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 ifndef ONLY_TOOLS
38 ifeq ($(ENABLE_PIC),1)
39 # gold only builds if binutils is around. It requires "lto" to build before
40 # it so it is added to DIRS.
41 ifdef BINUTILS_INCDIR
42 DIRS += lto gold
43 else
44 PARALLEL_DIRS += lto
45 endif
47 PARALLEL_DIRS += bugpoint-passes
49 # The edis library is only supported if ARM and/or X86 are enabled, and if
50 # LLVM is being built PIC on platforms that support dylibs.
51 ifneq ($(DISABLE_EDIS),1)
52 ifneq ($(filter $(TARGETS_TO_BUILD), X86 ARM),)
53 PARALLEL_DIRS += edis
54 endif
55 endif
56 endif
58 ifdef LLVM_HAS_POLLY
59 PARALLEL_DIRS += polly
60 endif
61 endif
63 # On Win32, loadable modules can be built with ENABLE_SHARED.
64 ifneq ($(ENABLE_SHARED),1)
65 ifneq (,$(filter $(HOST_OS), Cygwin MingW))
66 PARALLEL_DIRS := $(filter-out bugpoint-passes, \
67 $(PARALLEL_DIRS))
68 endif
69 endif
71 include $(LEVEL)/Makefile.common