Try this. Darwin -> LTO, PIC -> LTO + possibly gold too.
[oota-llvm.git] / tools / Makefile
1 ##===- tools/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 LEVEL := ..
11
12 # Build clang if present.
13 OPTIONAL_PARALLEL_DIRS := clang
14
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 PARALLEL_DIRS := llvm-config  \
19                  opt llvm-as llvm-dis \
20                  llc llvm-ranlib llvm-ar llvm-nm \
21                  llvm-ld llvm-prof llvm-link \
22                  lli gccas gccld llvm-extract llvm-db \
23                  bugpoint llvm-bcanalyzer llvm-stub llvmc
24
25
26 include $(LEVEL)/Makefile.config
27
28 # build lto project on Darwin or if PIC is enabled
29 ifeq ($(OS),Darwin)
30 PARALLEL_DIRS += lto
31 else ($(ENABLE_PIC),1)
32 PARALLEL_DIRS += lto
33 ifdef BINUTILS_INCDIR
34 PARALLEL_DIRS += gold
35 endif
36 endif
37
38 include $(LEVEL)/Makefile.common