blob: a296f8187024aabd6a6da33f959a0db91e7ff946 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- tools/Makefile --------------------------------------*- Makefile -*-===##
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +00002#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattnere692fc82007-12-29 20:07:17 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +00007#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008##===----------------------------------------------------------------------===##
9
10LEVEL := ..
Mike Stump0fec3192009-01-24 00:00:41 +000011
12# Build clang if present.
13OPTIONAL_PARALLEL_DIRS := clang
14
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000015# 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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017# in parallel builds. Please retain this ordering.
18PARALLEL_DIRS := llvm-config \
Tanya Lattner984b1292008-03-25 05:05:58 +000019 opt llvm-as llvm-dis \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020 llc llvm-ranlib llvm-ar llvm-nm \
Chris Lattner56317b22008-03-30 18:58:05 +000021 llvm-ld llvm-prof llvm-link \
Anton Korobeynikov43578cd2008-04-23 22:46:24 +000022 lli gccas gccld llvm-extract llvm-db \
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000023 bugpoint llvm-bcanalyzer llvm-stub llvmc
Bill Wendling0fe34c22007-12-08 23:58:46 +000024
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025
26include $(LEVEL)/Makefile.config
27
Duncan Sands453f9b72009-02-11 13:23:49 +000028# only build new lto project on Darwin for now
Devang Patele8118342009-02-11 02:34:33 +000029ifeq ($(OS),Darwin)
Devang Patel8e728a82008-06-30 18:15:01 +000030PARALLEL_DIRS += lto
Duncan Sands453f9b72009-02-11 13:23:49 +000031
Nick Lewyckyc64a3bc2009-02-03 07:13:24 +000032ifdef BINUTILS_INCDIR
33PARALLEL_DIRS += gold
34endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035endif
36
37include $(LEVEL)/Makefile.common