Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ##===- tools/Makefile --------------------------------------*- Makefile -*-===## |
Mikhail Glushenkov | c7e56fe | 2008-11-25 21:38:12 +0000 | [diff] [blame] | 2 | # |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | e692fc8 | 2007-12-29 20:07:17 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Mikhail Glushenkov | c7e56fe | 2008-11-25 21:38:12 +0000 | [diff] [blame] | 7 | # |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 8 | ##===----------------------------------------------------------------------===## |
| 9 | |
| 10 | LEVEL := .. |
Mike Stump | 0fec319 | 2009-01-24 00:00:41 +0000 | [diff] [blame] | 11 | |
| 12 | # Build clang if present. |
| 13 | OPTIONAL_PARALLEL_DIRS := clang |
| 14 | |
Mikhail Glushenkov | c7e56fe | 2008-11-25 21:38:12 +0000 | [diff] [blame] | 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 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 17 | # in parallel builds. Please retain this ordering. |
Nick Lewycky | abf6736 | 2009-02-26 07:56:49 +0000 | [diff] [blame] | 18 | DIRS := llvm-config |
| 19 | PARALLEL_DIRS := opt llvm-as llvm-dis \ |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 20 | llc llvm-ranlib llvm-ar llvm-nm \ |
Chris Lattner | 56317b2 | 2008-03-30 18:58:05 +0000 | [diff] [blame] | 21 | llvm-ld llvm-prof llvm-link \ |
Nick Lewycky | 9230042 | 2009-02-26 09:08:43 +0000 | [diff] [blame] | 22 | lli gccas gccld llvm-extract llvm-db \ |
Daniel Dunbar | 4771b9e | 2009-06-29 21:12:26 +0000 | [diff] [blame] | 23 | bugpoint llvm-bcanalyzer llvm-stub \ |
Mikhail Glushenkov | 714440d | 2009-07-04 03:54:54 +0000 | [diff] [blame] | 24 | llvm-mc llvmc |
Bill Wendling | 0fe34c2 | 2007-12-08 23:58:46 +0000 | [diff] [blame] | 25 | |
Chris Lattner | 15aeb9a | 2009-04-25 22:08:52 +0000 | [diff] [blame] | 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 |
| 31 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 32 | include $(LEVEL)/Makefile.config |
| 33 | |
Nick Lewycky | de72478 | 2009-03-03 07:45:09 +0000 | [diff] [blame] | 34 | ifeq ($(ENABLE_PIC),1) |
Mikhail Glushenkov | 714440d | 2009-07-04 03:54:54 +0000 | [diff] [blame] | 35 | DIRS += lto |
Nick Lewycky | abf6736 | 2009-02-26 07:56:49 +0000 | [diff] [blame] | 36 | ifdef BINUTILS_INCDIR |
| 37 | DIRS += gold |
| 38 | endif |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 39 | endif |
| 40 | |
Anton Korobeynikov | 20acb4a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 41 | # No support for lto / gold on windows targets |
Anton Korobeynikov | 92c5181 | 2009-08-18 00:40:33 +0000 | [diff] [blame^] | 42 | ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW)) |
Anton Korobeynikov | 7f37f79 | 2009-03-11 21:05:21 +0000 | [diff] [blame] | 43 | DIRS := $(filter-out lto gold, $(DIRS)) |
Anton Korobeynikov | 20acb4a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 44 | endif |
| 45 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 46 | include $(LEVEL)/Makefile.common |