llvm.org GIT mirror llvm / 8c39c96
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 Daniel Dunbar 7 years ago
28 changed file(s) with 106 addition(s) and 144 deletion(s). Raw diff Collapse all Expand all
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = bugpoint
11
12 LINK_COMPONENTS := asmparser instrumentation scalaropts ipo \
13 linker bitreader bitwriter
9 LEVEL := ../..
10 TOOLNAME := bugpoint
11 LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
12 bitwriter
1413
1514 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 LIBRARYNAME = BugpointPasses
11 LOADABLE_MODULE = 1
12 USEDLIBS =
9 LEVEL := ../..
10 LIBRARYNAME := BugpointPasses
11 LOADABLE_MODULE := 1
12 USEDLIBS :=
1313
1414 # If we don't need RTTI or EH, there's no reason to export anything
1515 # from this plugin.
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 LIBRARYNAME = EnhancedDisassembly
11 LINK_LIBS_IN_SHARED = 1
9 LEVEL := ../..
10 LIBRARYNAME := EnhancedDisassembly
11 LINK_LIBS_IN_SHARED := 1
1212
1313 EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/EnhancedDisassembly.exports
1414
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 LIBRARYNAME = LLVMgold
9 LEVEL := ../..
10 LIBRARYNAME := LLVMgold
11 LINK_COMPONENTS := support
12 LINK_LIBS_IN_SHARED := 1
13 SHARED_LIBRARY := 1
14 LOADABLE_MODULE := 1
1115
1216 EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports
1317
1620 # early so we can set up LINK_COMPONENTS before including Makefile.rules
1721 include $(LEVEL)/Makefile.config
1822
19 LINK_LIBS_IN_SHARED=1
20 SHARED_LIBRARY = 1
21 LOADABLE_MODULE = 1
22
23 LINK_COMPONENTS := support
24
2523 # Because off_t is used in the public API, the largefile parts are required for
2624 # ABI compatibility.
27 CXXFLAGS+=-I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
28 CXXFLAGS+=$(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
25 CXXFLAGS += -I$(BINUTILS_INCDIR) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
26 CXXFLAGS += $(SharedLibDir)/$(SharedPrefix)LTO$(SHLIBEXT)
2927
3028 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llc
9 LEVEL := ../..
10 TOOLNAME := llc
11 LINK_COMPONENTS := all-targets bitreader asmparser
1112
12 # Include this here so we can get the configuration of the targets
13 # that have been configured for construction. We have to do this
14 # early so we can set up LINK_COMPONENTS before including Makefile.rules
15 include $(LEVEL)/Makefile.config
13 include $(LEVEL)/Makefile.common
1614
17 LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader asmparser
18
19 include $(LLVM_SRC_ROOT)/Makefile.rules
20
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL := ../..
9 LEVEL := ../..
1010 TOOLNAME := lli
1111 LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag
1212
13 # Enable JIT support
1413 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-ar
11 LINK_COMPONENTS = archive
9 LEVEL := ../..
10 TOOLNAME := llvm-ar
11 LINK_COMPONENTS := archive
1212 REQUIRES_EH := 1
1313
1414 # This tool has no plugins, optimize startup time.
15 TOOL_NO_EXPORTS = 1
15 TOOL_NO_EXPORTS := 1
1616
1717 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-as
9 LEVEL := ../..
10 TOOLNAME := llvm-as
1111 LINK_COMPONENTS := asmparser bitwriter
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-bcanalyzer
9 LEVEL := ../..
10 TOOLNAME := llvm-bcanalyzer
1111 LINK_COMPONENTS := bitreader
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10
11 TOOLNAME = llvm-cov
9 LEVEL := ../..
10 TOOLNAME := llvm-cov
1211 LINK_COMPONENTS := instrumentation
1312
1413 # This tool has no plugins, optimize startup time.
15 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1615
1716 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-diff
9 LEVEL := ../..
10 TOOLNAME := llvm-diff
1111 LINK_COMPONENTS := asmparser bitreader
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-dis
9 LEVEL := ../..
10 TOOLNAME := llvm-dis
1111 LINK_COMPONENTS := bitreader analysis
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-dwarfdump
11 LINK_COMPONENTS = DebugInfo Object
9 LEVEL := ../..
10 TOOLNAME := llvm-dwarfdump
11 LINK_COMPONENTS := DebugInfo Object
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10
11 TOOLNAME = llvm-extract
9 LEVEL := ../..
10 TOOLNAME := llvm-extract
1211 LINK_COMPONENTS := ipo bitreader bitwriter asmparser
1312
1413 # This tool has no plugins, optimize startup time.
15 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1615
1716 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10
11 TOOLNAME = llvm-ld
12 LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
9 LEVEL := ../..
10 TOOLNAME := llvm-ld
11 LINK_COMPONENTS := ipo scalaropts linker archive bitwriter
1312
1413 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-link
11 LINK_COMPONENTS = linker bitreader bitwriter asmparser
9 LEVEL := ../..
10 TOOLNAME := llvm-link
11 LINK_COMPONENTS := linker bitreader bitwriter asmparser
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-mc
9 LEVEL := ../..
10 TOOLNAME := llvm-mc
11 LINK_COMPONENTS := all-targets MCDisassembler MCParser MC support
1112
1213 # This tool has no plugins, optimize startup time.
13 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1415
15 # Include this here so we can get the configuration of the targets
16 # that have been configured for construction. We have to do this
17 # early so we can set up LINK_COMPONENTS before including Makefile.rules
18 include $(LEVEL)/Makefile.config
19
20 LINK_COMPONENTS := $(TARGETS_TO_BUILD) MCDisassembler MCParser MC support
21
22 include $(LLVM_SRC_ROOT)/Makefile.rules
23
16 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-nm
11 LINK_COMPONENTS = archive bitreader object
9 LEVEL := ../..
10 TOOLNAME := llvm-nm
11 LINK_COMPONENTS := archive bitreader object
1212
1313 # This tool has no plugins, optimize startup time.
14 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1515
1616 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-objdump
11 LINK_COMPONENTS = $(TARGETS_TO_BUILD) DebugInfo MC MCParser MCDisassembler \
12 Object
9 LEVEL := ../..
10 TOOLNAME := llvm-objdump
11 LINK_COMPONENTS := all-targets DebugInfo MC MCParser MCDisassembler Object
1312
1413 # This tool has no plugins, optimize startup time.
15 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1615
1716 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-prof
11 LINK_COMPONENTS = bitreader analysis
9 LEVEL := ../..
10 TOOLNAME := llvm-prof
11 LINK_COMPONENTS := bitreader analysis
1212
1313 # This tool has no plugins, optimize startup time.
1414 TOOL_NO_EXPORTS = 1
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-ranlib
11 LINK_COMPONENTS = archive
9 LEVEL := ../..
10 TOOLNAME := llvm-ranlib
11 LINK_COMPONENTS := archive
1212 REQUIRES_EH := 1
1313
1414 # This tool has no plugins, optimize startup time.
15 TOOL_NO_EXPORTS = 1
15 TOOL_NO_EXPORTS := 1
1616
1717 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-rtdyld
9 LEVEL := ../..
10 TOOLNAME := llvm-rtdyld
11 LINK_COMPONENTS := all-targets support MC object RuntimeDyld JIT
1112
1213 # This tool has no plugins, optimize startup time.
13 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1415
15 # Include this here so we can get the configuration of the targets
16 # that have been configured for construction. We have to do this
17 # early so we can set up LINK_COMPONENTS before including Makefile.rules
18 include $(LEVEL)/Makefile.config
19
20 LINK_COMPONENTS := $(TARGETS_TO_BUILD) support MC object RuntimeDyld JIT
21
22 include $(LLVM_SRC_ROOT)/Makefile.rules
16 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
9 LEVEL := ../..
1010
1111 LIBRARYNAME = LLVM-$(LLVMVersion)
1212
13 NO_BUILD_ARCHIVE = 1
14 LINK_LIBS_IN_SHARED = 1
15 SHARED_LIBRARY = 1
13 NO_BUILD_ARCHIVE := 1
14 LINK_LIBS_IN_SHARED := 1
15 SHARED_LIBRARY := 1
1616
1717 include $(LEVEL)/Makefile.config
1818
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
98
10 TOOLNAME = llvm-size
11 LINK_COMPONENTS = object
9 LEVEL := ../..
10 TOOLNAME := llvm-size
11 LINK_COMPONENTS := object
1212
1313 # This tool has no plugins, optimize startup time.
1414 TOOL_NO_EXPORTS = 1
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = llvm-stub
9 LEVEL := ../..
10 TOOLNAME := llvm-stub
11 LINK_COMPONENTS := object
12
1113 include $(LEVEL)/Makefile.common
1214
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 LIBRARYNAME = LTO
9 LEVEL := ../..
10 LIBRARYNAME := LTO
11 LINK_COMPONENTS := all-targets ipo scalaropts linker bitreader bitwriter \
12 mcdisassembler
13 LINK_LIBS_IN_SHARED := 1
14 SHARED_LIBRARY := 1
1115
1216 EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/lto.exports
13
14 # Include this here so we can get the configuration of the targets
15 # that have been configured for construction. We have to do this
16 # early so we can set up LINK_COMPONENTS before including Makefile.rules
17 include $(LEVEL)/Makefile.config
18
19 LINK_LIBS_IN_SHARED = 1
20 SHARED_LIBRARY = 1
21
22 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader \
23 bitwriter mcdisassembler
2417
2518 include $(LEVEL)/Makefile.common
2619
66 #
77 ##===----------------------------------------------------------------------===##
88
9 LEVEL = ../..
10 TOOLNAME = macho-dump
9 LEVEL := ../..
10 TOOLNAME := macho-dump
11 LINK_COMPONENTS := support object
1112
1213 # This tool has no plugins, optimize startup time.
13 TOOL_NO_EXPORTS = 1
14 TOOL_NO_EXPORTS := 1
1415
15 # Include this here so we can get the configuration of the targets
16 # that have been configured for construction. We have to do this
17 # early so we can set up LINK_COMPONENTS before including Makefile.rules
18 include $(LEVEL)/Makefile.config
19
20 LINK_COMPONENTS := support object
21
22 include $(LLVM_SRC_ROOT)/Makefile.rules
16 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8 LEVEL = ../..
9 TOOLNAME = opt
108
9 LEVEL := ../..
10 TOOLNAME := opt
1111 LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
1212
1313 include $(LEVEL)/Makefile.common