Chris Lattner | 6d47bae | 2004-01-05 05:28:15 +0000 | [diff] [blame] | 1 | ##===- tools/Makefile --------------------------------------*- Makefile -*-===## |
Mikhail Glushenkov | 113ec35 | 2008-11-25 21:38:12 +0000 | [diff] [blame] | 2 | # |
John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 5116784 | 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 | 113ec35 | 2008-11-25 21:38:12 +0000 | [diff] [blame] | 7 | # |
John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 8 | ##===----------------------------------------------------------------------===## |
Chris Lattner | 6d47bae | 2004-01-05 05:28:15 +0000 | [diff] [blame] | 9 | |
Chris Lattner | 698e9ce | 2002-12-06 03:53:40 +0000 | [diff] [blame] | 10 | LEVEL := .. |
Mike Stump | 0a26891 | 2009-01-24 00:00:41 +0000 | [diff] [blame] | 11 | |
| 12 | # Build clang if present. |
| 13 | OPTIONAL_PARALLEL_DIRS := clang |
| 14 | |
Mikhail Glushenkov | 113ec35 | 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 |
Reid Spencer | 36a987e | 2007-02-09 17:02:07 +0000 | [diff] [blame] | 17 | # in parallel builds. Please retain this ordering. |
Nick Lewycky | dcd158a | 2009-02-26 07:56:49 +0000 | [diff] [blame] | 18 | DIRS := llvm-config |
| 19 | PARALLEL_DIRS := opt llvm-as llvm-dis \ |
Reid Spencer | 36a987e | 2007-02-09 17:02:07 +0000 | [diff] [blame] | 20 | llc llvm-ranlib llvm-ar llvm-nm \ |
Chris Lattner | 8c2ec51 | 2008-03-30 18:58:05 +0000 | [diff] [blame] | 21 | llvm-ld llvm-prof llvm-link \ |
Chris Lattner | dbf75e8 | 2009-10-05 02:29:51 +0000 | [diff] [blame] | 22 | lli llvm-extract \ |
Daniel Dunbar | 74deeb8 | 2009-06-29 21:12:26 +0000 | [diff] [blame] | 23 | bugpoint llvm-bcanalyzer llvm-stub \ |
Mikhail Glushenkov | 86a3510 | 2009-07-04 03:54:54 +0000 | [diff] [blame] | 24 | llvm-mc llvmc |
Bill Wendling | 041b3f8 | 2007-12-08 23:58:46 +0000 | [diff] [blame] | 25 | |
Chris Lattner | 0694290 | 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 | |
Chris Lattner | cf8cb6d | 2006-09-08 18:33:49 +0000 | [diff] [blame] | 32 | include $(LEVEL)/Makefile.config |
Chris Lattner | 70c3537 | 2006-09-08 18:08:50 +0000 | [diff] [blame] | 33 | |
Nick Lewycky | e9742d2 | 2009-03-03 07:45:09 +0000 | [diff] [blame] | 34 | ifeq ($(ENABLE_PIC),1) |
Mikhail Glushenkov | 86a3510 | 2009-07-04 03:54:54 +0000 | [diff] [blame] | 35 | DIRS += lto |
Nick Lewycky | dcd158a | 2009-02-26 07:56:49 +0000 | [diff] [blame] | 36 | ifdef BINUTILS_INCDIR |
| 37 | DIRS += gold |
| 38 | endif |
Anton Korobeynikov | 294492b | 2006-09-08 18:00:43 +0000 | [diff] [blame] | 39 | endif |
Reid Spencer | ac28588 | 2006-05-30 21:20:55 +0000 | [diff] [blame] | 40 | |
Anton Korobeynikov | ad9d21a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 41 | # No support for lto / gold on windows targets |
Anton Korobeynikov | e55db74 | 2009-08-18 00:40:33 +0000 | [diff] [blame] | 42 | ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW)) |
Anton Korobeynikov | 773f57e | 2009-03-11 21:05:21 +0000 | [diff] [blame] | 43 | DIRS := $(filter-out lto gold, $(DIRS)) |
Anton Korobeynikov | ad9d21a | 2009-03-11 19:49:42 +0000 | [diff] [blame] | 44 | endif |
| 45 | |
Chris Lattner | cf8cb6d | 2006-09-08 18:33:49 +0000 | [diff] [blame] | 46 | include $(LEVEL)/Makefile.common |