2004-01-05 06:28:15 +01:00
|
|
|
##===- tools/Makefile --------------------------------------*- Makefile -*-===##
|
2008-11-25 22:38:12 +01:00
|
|
|
#
|
2003-10-21 00:29:16 +02:00
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-29 21:07:17 +01:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2008-11-25 22:38:12 +01:00
|
|
|
#
|
2003-10-21 00:29:16 +02:00
|
|
|
##===----------------------------------------------------------------------===##
|
2004-01-05 06:28:15 +01:00
|
|
|
|
2002-12-06 04:53:40 +01:00
|
|
|
LEVEL := ..
|
2009-01-24 01:00:41 +01:00
|
|
|
|
|
|
|
# Build clang if present.
|
|
|
|
OPTIONAL_PARALLEL_DIRS := clang
|
|
|
|
|
2008-11-25 22:38:12 +01:00
|
|
|
# NOTE: The tools are organized into five groups of four consisting of one
|
|
|
|
# large and three small executables. This is done to minimize memory load
|
2007-02-09 18:02:07 +01:00
|
|
|
# in parallel builds. Please retain this ordering.
|
2009-02-26 08:56:49 +01:00
|
|
|
DIRS := llvm-config
|
|
|
|
PARALLEL_DIRS := opt llvm-as llvm-dis \
|
2007-02-09 18:02:07 +01:00
|
|
|
llc llvm-ranlib llvm-ar llvm-nm \
|
2008-03-30 20:58:05 +02:00
|
|
|
llvm-ld llvm-prof llvm-link \
|
2009-02-26 10:08:43 +01:00
|
|
|
lli gccas gccld llvm-extract llvm-db \
|
2009-06-29 23:12:26 +02:00
|
|
|
bugpoint llvm-bcanalyzer llvm-stub \
|
2009-07-04 05:54:54 +02:00
|
|
|
llvm-mc llvmc
|
2007-12-09 00:58:46 +01:00
|
|
|
|
2009-04-26 00:08:52 +02:00
|
|
|
# Let users override the set of tools to build from the command line.
|
|
|
|
ifdef ONLY_TOOLS
|
|
|
|
OPTIONAL_PARALLEL_DIRS :=
|
|
|
|
PARALLEL_DIRS := $(ONLY_TOOLS)
|
|
|
|
endif
|
|
|
|
|
2006-09-08 20:33:49 +02:00
|
|
|
include $(LEVEL)/Makefile.config
|
2006-09-08 20:08:50 +02:00
|
|
|
|
2009-03-03 08:45:09 +01:00
|
|
|
ifeq ($(ENABLE_PIC),1)
|
2009-07-04 05:54:54 +02:00
|
|
|
DIRS += lto
|
2009-02-26 08:56:49 +01:00
|
|
|
ifdef BINUTILS_INCDIR
|
|
|
|
DIRS += gold
|
|
|
|
endif
|
2006-09-08 20:00:43 +02:00
|
|
|
endif
|
2006-05-30 23:20:55 +02:00
|
|
|
|
2009-03-11 20:49:42 +01:00
|
|
|
# No support for lto / gold on windows targets
|
|
|
|
ifeq ($(OS), $(filter $(OS), Cygwin MingW))
|
2009-03-11 22:05:21 +01:00
|
|
|
DIRS := $(filter-out lto gold, $(DIRS))
|
2009-03-11 20:49:42 +01:00
|
|
|
endif
|
|
|
|
|
2006-09-08 20:33:49 +02:00
|
|
|
include $(LEVEL)/Makefile.common
|