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 \ |
Chris Lattner | afb1c45 | 2009-10-05 02:29:51 +0000 | [diff] [blame] | 22 | lli llvm-extract \ |
Daniel Dunbar | 4771b9e | 2009-06-29 21:12:26 +0000 | [diff] [blame] | 23 | bugpoint llvm-bcanalyzer llvm-stub \ |
Sean Callanan | 97391ee | 2010-01-29 01:30:01 +0000 | [diff] [blame] | 24 | llvm-mc llvmc \ |
Sean Callanan | 3c45af4 | 2010-02-02 20:20:30 +0000 | [diff] [blame] | 25 | edis |
Bill Wendling | 0fe34c2 | 2007-12-08 23:58:46 +0000 | [diff] [blame] | 26 | |
Chris Lattner | 15aeb9a | 2009-04-25 22:08:52 +0000 | [diff] [blame] | 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 |
| 32 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 33 | include $(LEVEL)/Makefile.config |
| 34 | |
Nick Lewycky | de72478 | 2009-03-03 07:45:09 +0000 | [diff] [blame] | 35 | ifeq ($(ENABLE_PIC),1) |
Mikhail Glushenkov | 714440d | 2009-07-04 03:54:54 +0000 | [diff] [blame] | 36 | DIRS += lto |
Nick Lewycky | abf6736 | 2009-02-26 07:56:49 +0000 | [diff] [blame] | 37 | ifdef BINUTILS_INCDIR |
| 38 | DIRS += gold |
| 39 | endif |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 40 | endif |
| 41 | |
Anton Korobeynikov | 20acb4a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 42 | # No support for lto / gold on windows targets |
Anton Korobeynikov | 92c5181 | 2009-08-18 00:40:33 +0000 | [diff] [blame] | 43 | ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW)) |
Anton Korobeynikov | 7f37f79 | 2009-03-11 21:05:21 +0000 | [diff] [blame] | 44 | DIRS := $(filter-out lto gold, $(DIRS)) |
Anton Korobeynikov | 20acb4a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 45 | endif |
| 46 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 47 | include $(LEVEL)/Makefile.common |