blob: 0cf613a3058a537b2f3e467775ca153b6e2d149e [file] [log] [blame]
Chris Lattner144992e2004-01-05 05:28:15 +00001##===- tools/Makefile --------------------------------------*- Makefile -*-===##
Mikhail Glushenkov98d5ed52008-11-25 21:38:12 +00002#
John Criswellabe5cdc2003-10-20 22:29:16 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattner8fa21ac2007-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 Glushenkov98d5ed52008-11-25 21:38:12 +00007#
John Criswellabe5cdc2003-10-20 22:29:16 +00008##===----------------------------------------------------------------------===##
Chris Lattner144992e2004-01-05 05:28:15 +00009
Chris Lattner71b82e32002-12-06 03:53:40 +000010LEVEL := ..
Mike Stump82221d62009-01-24 00:00:41 +000011
12# Build clang if present.
13OPTIONAL_PARALLEL_DIRS := clang
14
Mikhail Glushenkov98d5ed52008-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
Reid Spencer49785b92007-02-09 17:02:07 +000017# in parallel builds. Please retain this ordering.
Reid Spencer82f22342007-02-09 17:18:42 +000018PARALLEL_DIRS := llvm-config \
Tanya Lattnerca8eb5d2008-03-25 05:05:58 +000019 opt llvm-as llvm-dis \
Reid Spencer49785b92007-02-09 17:02:07 +000020 llc llvm-ranlib llvm-ar llvm-nm \
Chris Lattnere950eee2008-03-30 18:58:05 +000021 llvm-ld llvm-prof llvm-link \
Anton Korobeynikov8bfd6de2008-04-23 22:46:24 +000022 lli gccas gccld llvm-extract llvm-db \
Mikhail Glushenkov98d5ed52008-11-25 21:38:12 +000023 bugpoint llvm-bcanalyzer llvm-stub llvmc
Bill Wendling3f19dfe72007-12-08 23:58:46 +000024
Chris Lattnereda4a9e2006-09-08 18:08:50 +000025
Chris Lattnerfe01c282006-09-08 18:33:49 +000026include $(LEVEL)/Makefile.config
Chris Lattnereda4a9e2006-09-08 18:08:50 +000027
Nick Lewycky5c8fc9d2009-01-26 03:04:57 +000028ifeq ($(ENABLE_PIC),1)
Devang Patel4be1c152008-06-30 18:15:01 +000029PARALLEL_DIRS += lto
Nick Lewyckyfb643e42009-02-03 07:13:24 +000030
31ifdef BINUTILS_INCDIR
32PARALLEL_DIRS += gold
33endif
Anton Korobeynikovdc7b5192006-09-08 18:00:43 +000034endif
Reid Spencerc3b93702006-05-30 21:20:55 +000035
Chris Lattnerfe01c282006-09-08 18:33:49 +000036include $(LEVEL)/Makefile.common