1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

build: Tidy up a bunch of tool Makefiles, and simplify where possible using the

new all-targets pseudo-component.

llvm-svn: 142401
This commit is contained in:
Daniel Dunbar 2011-10-18 19:27:24 +00:00
parent 2299fff72b
commit 81780d9982
28 changed files with 107 additions and 145 deletions

View File

@ -7,10 +7,10 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
LIBRARYNAME = BugpointPasses LIBRARYNAME := BugpointPasses
LOADABLE_MODULE = 1 LOADABLE_MODULE := 1
USEDLIBS = USEDLIBS :=
# If we don't need RTTI or EH, there's no reason to export anything # If we don't need RTTI or EH, there's no reason to export anything
# from this plugin. # from this plugin.

View File

@ -6,11 +6,10 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = bugpoint LEVEL := ../..
TOOLNAME := bugpoint
LINK_COMPONENTS := asmparser instrumentation scalaropts ipo \ LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
linker bitreader bitwriter bitwriter
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,9 +7,9 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
LIBRARYNAME = EnhancedDisassembly LIBRARYNAME := EnhancedDisassembly
LINK_LIBS_IN_SHARED = 1 LINK_LIBS_IN_SHARED := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/EnhancedDisassembly.exports EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/EnhancedDisassembly.exports

View File

@ -7,8 +7,12 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
LIBRARYNAME = LLVMgold LIBRARYNAME := LLVMgold
LINK_COMPONENTS := support
LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY := 1
LOADABLE_MODULE := 1
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports 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 # early so we can set up LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config 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 # Because off_t is used in the public API, the largefile parts are required for
# ABI compatibility. # ABI compatibility.
CXXFLAGS+=-I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CXXFLAGS+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT) CXXFLAGS += $(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,15 +7,9 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llc TOOLNAME := llc
LINK_COMPONENTS := all-targets bitreader asmparser
# Include this here so we can get the configuration of the targets include $(LEVEL)/Makefile.common
# 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

View File

@ -7,9 +7,8 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL := ../.. LEVEL := ../..
TOOLNAME := lli TOOLNAME := lli
LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag
# Enable JIT support
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,13 +6,13 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-ar LEVEL := ../..
LINK_COMPONENTS = archive TOOLNAME := llvm-ar
LINK_COMPONENTS := archive
REQUIRES_EH := 1 REQUIRES_EH := 1
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,11 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-as TOOLNAME := llvm-as
LINK_COMPONENTS := asmparser bitwriter LINK_COMPONENTS := asmparser bitwriter
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-bcanalyzer LEVEL := ../..
TOOLNAME := llvm-bcanalyzer
LINK_COMPONENTS := bitreader LINK_COMPONENTS := bitreader
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,12 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME := llvm-cov
TOOLNAME = llvm-cov
LINK_COMPONENTS := instrumentation LINK_COMPONENTS := instrumentation
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,11 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-diff TOOLNAME := llvm-diff
LINK_COMPONENTS := asmparser bitreader LINK_COMPONENTS := asmparser bitreader
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-dis LEVEL := ../..
TOOLNAME := llvm-dis
LINK_COMPONENTS := bitreader analysis LINK_COMPONENTS := bitreader analysis
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-dwarfdump LEVEL := ../..
LINK_COMPONENTS = DebugInfo Object TOOLNAME := llvm-dwarfdump
LINK_COMPONENTS := DebugInfo Object
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,12 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME := llvm-extract
TOOLNAME = llvm-extract
LINK_COMPONENTS := ipo bitreader bitwriter asmparser LINK_COMPONENTS := ipo bitreader bitwriter asmparser
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,9 +7,8 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME := llvm-ld
TOOLNAME = llvm-ld LINK_COMPONENTS := ipo scalaropts linker archive bitwriter
LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-link LEVEL := ../..
LINK_COMPONENTS = linker bitreader bitwriter asmparser TOOLNAME := llvm-link
LINK_COMPONENTS := linker bitreader bitwriter asmparser
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,18 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-mc TOOLNAME := llvm-mc
LINK_COMPONENTS := all-targets MCDisassembler MCParser MC support
# This tool has no plugins, optimize startup time. # 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) MCDisassembler MCParser MC support
include $(LLVM_SRC_ROOT)/Makefile.rules
include $(LEVEL)/Makefile.common

View File

@ -6,12 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-nm LEVEL := ../..
LINK_COMPONENTS = archive bitreader object TOOLNAME := llvm-nm
LINK_COMPONENTS := archive bitreader object
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,13 +6,12 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-objdump LEVEL := ../..
LINK_COMPONENTS = $(TARGETS_TO_BUILD) DebugInfo MC MCParser MCDisassembler \ TOOLNAME := llvm-objdump
Object LINK_COMPONENTS := all-targets DebugInfo MC MCParser MCDisassembler Object
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -6,10 +6,10 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-prof LEVEL := ../..
LINK_COMPONENTS = bitreader analysis TOOLNAME := llvm-prof
LINK_COMPONENTS := bitreader analysis
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS = 1

View File

@ -7,12 +7,12 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-ranlib TOOLNAME := llvm-ranlib
LINK_COMPONENTS = archive LINK_COMPONENTS := archive
REQUIRES_EH := 1 REQUIRES_EH := 1
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS := 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,17 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-rtdyld TOOLNAME := llvm-rtdyld
LINK_COMPONENTS := all-targets support MC object RuntimeDyld JIT
# This tool has no plugins, optimize startup time. # 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 include $(LEVEL)/Makefile.common
# 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

View File

@ -7,13 +7,13 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
LIBRARYNAME = LLVM-$(LLVMVersion) LIBRARYNAME = LLVM-$(LLVMVersion)
NO_BUILD_ARCHIVE = 1 NO_BUILD_ARCHIVE := 1
LINK_LIBS_IN_SHARED = 1 LINK_LIBS_IN_SHARED := 1
SHARED_LIBRARY = 1 SHARED_LIBRARY := 1
include $(LEVEL)/Makefile.config include $(LEVEL)/Makefile.config

View File

@ -6,10 +6,10 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-size LEVEL := ../..
LINK_COMPONENTS = object TOOLNAME := llvm-size
LINK_COMPONENTS := object
# This tool has no plugins, optimize startup time. # This tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1 TOOL_NO_EXPORTS = 1

View File

@ -7,7 +7,9 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = llvm-stub TOOLNAME := llvm-stub
LINK_COMPONENTS := object
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,22 +7,15 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
LIBRARYNAME = LTO 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 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 include $(LEVEL)/Makefile.common
ifdef LLVM_VERSION_INFO ifdef LLVM_VERSION_INFO

View File

@ -7,17 +7,11 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL := ../..
TOOLNAME = macho-dump 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
LINK_COMPONENTS := support object 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

View File

@ -6,9 +6,9 @@
# License. See LICENSE.TXT for details. # License. See LICENSE.TXT for details.
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = opt
LEVEL := ../..
TOOLNAME := opt
LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common