summaryrefslogtreecommitdiff
path: root/tools/lto/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-10-18 19:27:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-10-18 19:27:24 +0000
commit8c39c9647da4f375e4f89bd417d86f5c3ff6dfa5 (patch)
tree884981b55a68d3bcc1c3436d7babc698f9822a72 /tools/lto/Makefile
parentbfe2a6bb59535a43ef3c8dcf98ac785faee67e7b (diff)
downloadllvm-8c39c9647da4f375e4f89bd417d86f5c3ff6dfa5.tar.gz
llvm-8c39c9647da4f375e4f89bd417d86f5c3ff6dfa5.tar.bz2
llvm-8c39c9647da4f375e4f89bd417d86f5c3ff6dfa5.tar.xz
build: Tidy up a bunch of tool Makefiles, and simplify where possible using the
new all-targets pseudo-component. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/Makefile')
-rw-r--r--tools/lto/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index 46925e77de..ef78f82c8c 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -7,22 +7,15 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
-LIBRARYNAME = LTO
+LEVEL := ../..
+LIBRARYNAME := LTO
+LINK_COMPONENTS := all-targets ipo scalaropts linker bitreader bitwriter \
+ mcdisassembler
+LINK_LIBS_IN_SHARED := 1
+SHARED_LIBRARY := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/lto.exports
-# Include this here so we can get the configuration of the targets
-# that have been configured for construction. We have to do this
-# early so we can set up LINK_COMPONENTS before including Makefile.rules
-include $(LEVEL)/Makefile.config
-
-LINK_LIBS_IN_SHARED = 1
-SHARED_LIBRARY = 1
-
-LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader \
- bitwriter mcdisassembler
-
include $(LEVEL)/Makefile.common
ifdef LLVM_VERSION_INFO