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
This commit is contained in:
Daniel Dunbar committed 2011-10-18 19:27:24 +00:00
1 parent bfe2a6bb59
commit 8c39c9647d
28 files changed
+107 -145

No files matched your search

+4 -4
View File
@@ -7,10 +7,10 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
LIBRARYNAME = BugpointPasses
LOADABLE_MODULE = 1
USEDLIBS =
LEVEL := ../..
LIBRARYNAME := BugpointPasses
LOADABLE_MODULE := 1
USEDLIBS :=
# If we don't need RTTI or EH, there's no reason to export anything
# from this plugin.
+4 -5
View File
@@ -6,11 +6,10 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = bugpoint
LINK_COMPONENTS := asmparser instrumentation scalaropts ipo \
linker bitreader bitwriter
LEVEL := ../..
TOOLNAME := bugpoint
LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
bitwriter
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -7,9 +7,9 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
LIBRARYNAME = EnhancedDisassembly
LINK_LIBS_IN_SHARED = 1
LEVEL := ../..
LIBRARYNAME := EnhancedDisassembly
LINK_LIBS_IN_SHARED := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/EnhancedDisassembly.exports
+8 -10
View File
@@ -7,8 +7,12 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
LIBRARYNAME = LLVMgold
LEVEL := ../..
LIBRARYNAME := LLVMgold
LINK_COMPONENTS := support
LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY := 1
LOADABLE_MODULE := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
@@ -17,15 +21,9 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
# early so we can set up LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config
LINK_LIBS_IN_SHARED=1
SHARED_LIBRARY = 1
LOADABLE_MODULE = 1
LINK_COMPONENTS := support
# Because off_t is used in the public API, the largefile parts are required for
# ABI compatibility.
CXXFLAGS+=-I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CXXFLAGS+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CXXFLAGS += $(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
include $(LEVEL)/Makefile.common
+4 -10
View File
@@ -7,15 +7,9 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llc
LEVEL := ../..
TOOLNAME := llc
LINK_COMPONENTS := all-targets bitreader asmparser
# 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_COMPONENTS := $(TARGETS_TO_BUILD) bitreader asmparser
include $(LLVM_SRC_ROOT)/Makefile.rules
include $(LEVEL)/Makefile.common
+1 -2
View File
@@ -7,9 +7,8 @@
#
##===----------------------------------------------------------------------===##
LEVEL := ../..
LEVEL := ../..
TOOLNAME := lli
LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag
# Enable JIT support
include $(LEVEL)/Makefile.common
+4 -4
View File
@@ -6,13 +6,13 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-ar
LINK_COMPONENTS = archive
LEVEL := ../..
TOOLNAME := llvm-ar
LINK_COMPONENTS := archive
REQUIRES_EH := 1
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -7,11 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-as
LEVEL := ../..
TOOLNAME := llvm-as
LINK_COMPONENTS := asmparser bitwriter
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-bcanalyzer
LEVEL := ../..
TOOLNAME := llvm-bcanalyzer
LINK_COMPONENTS := bitreader
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -4
View File
@@ -7,12 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-cov
LEVEL := ../..
TOOLNAME := llvm-cov
LINK_COMPONENTS := instrumentation
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -7,11 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-diff
LEVEL := ../..
TOOLNAME := llvm-diff
LINK_COMPONENTS := asmparser bitreader
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-dis
LEVEL := ../..
TOOLNAME := llvm-dis
LINK_COMPONENTS := bitreader analysis
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+4 -4
View File
@@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-dwarfdump
LINK_COMPONENTS = DebugInfo Object
LEVEL := ../..
TOOLNAME := llvm-dwarfdump
LINK_COMPONENTS := DebugInfo Object
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -4
View File
@@ -7,12 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-extract
LEVEL := ../..
TOOLNAME := llvm-extract
LINK_COMPONENTS := ipo bitreader bitwriter asmparser
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -4
View File
@@ -7,9 +7,8 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-ld
LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
LEVEL := ../..
TOOLNAME := llvm-ld
LINK_COMPONENTS := ipo scalaropts linker archive bitwriter
include $(LEVEL)/Makefile.common
+4 -4
View File
@@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-link
LINK_COMPONENTS = linker bitreader bitwriter asmparser
LEVEL := ../..
TOOLNAME := llvm-link
LINK_COMPONENTS := linker bitreader bitwriter asmparser
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+5 -12
View File
@@ -7,18 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-mc
LEVEL := ../..
TOOLNAME := llvm-mc
LINK_COMPONENTS := all-targets MCDisassembler MCParser MC support
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
# 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_COMPONENTS := $(TARGETS_TO_BUILD) MCDisassembler MCParser MC support
include $(LLVM_SRC_ROOT)/Makefile.rules
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+4 -4
View File
@@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-nm
LINK_COMPONENTS = archive bitreader object
LEVEL := ../..
TOOLNAME := llvm-nm
LINK_COMPONENTS := archive bitreader object
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+4 -5
View File
@@ -6,13 +6,12 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-objdump
LINK_COMPONENTS = $(TARGETS_TO_BUILD) DebugInfo MC MCParser MCDisassembler \
Object
LEVEL := ../..
TOOLNAME := llvm-objdump
LINK_COMPONENTS := all-targets DebugInfo MC MCParser MCDisassembler Object
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+3 -3
View File
@@ -6,10 +6,10 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-prof
LINK_COMPONENTS = bitreader analysis
LEVEL := ../..
TOOLNAME := llvm-prof
LINK_COMPONENTS := bitreader analysis
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
+4 -4
View File
@@ -7,12 +7,12 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-ranlib
LINK_COMPONENTS = archive
LEVEL := ../..
TOOLNAME := llvm-ranlib
LINK_COMPONENTS := archive
REQUIRES_EH := 1
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+5 -11
View File
@@ -7,17 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-rtdyld
LEVEL := ../..
TOOLNAME := llvm-rtdyld
LINK_COMPONENTS := all-targets support MC object RuntimeDyld JIT
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
TOOL_NO_EXPORTS := 1
# 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_COMPONENTS := $(TARGETS_TO_BUILD) support MC object RuntimeDyld JIT
include $(LLVM_SRC_ROOT)/Makefile.rules
include $(LEVEL)/Makefile.common
+4 -4
View File
@@ -7,13 +7,13 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
LEVEL := ../..
LIBRARYNAME = LLVM-$(LLVMVersion)
NO_BUILD_ARCHIVE = 1
LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
NO_BUILD_ARCHIVE := 1
LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY := 1
include $(LEVEL)/Makefile.config
+3 -3
View File
@@ -6,10 +6,10 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-size
LINK_COMPONENTS = object
LEVEL := ../..
TOOLNAME := llvm-size
LINK_COMPONENTS := object
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
+4 -2
View File
@@ -7,7 +7,9 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-stub
LEVEL := ../..
TOOLNAME := llvm-stub
LINK_COMPONENTS := object
include $(LEVEL)/Makefile.common
+6 -13
View File
@@ -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
+6 -12
View File
@@ -7,17 +7,11 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = macho-dump
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
# 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
LEVEL := ../..
TOOLNAME := macho-dump
LINK_COMPONENTS := support object
include $(LLVM_SRC_ROOT)/Makefile.rules
# This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common
+2 -2
View File
@@ -6,9 +6,9 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = opt
LEVEL := ../..
TOOLNAME := opt
LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common