llvm.org GIT mirror llvm / aea932d
Use LINK_COMPONENTS to specify *components* to link against instead of using USED_LIBS to specify *libraries* to link against. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30090 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
18 changed file(s) with 21 addition(s) and 64 deletion(s). Raw diff Collapse all Expand all
99
1010 TOOLNAME = bugpoint
1111
12 OPTLIBS = LLVMTransforms.a LLVMInstrumentation.a
13 ANALIBS = LLVMDataStructure LLVMipa.a LLVMTarget.a
14
15 USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
16 LLVMTransformUtils.a \
17 LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
18 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
12 LINK_COMPONENTS := bcreader bcwriter asmparser instrumentation scalaropts ipo \
13 datastructure transforms linker
1914 REQUIRES_EH := 1
2015
2116 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = gccas
11 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
12 LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
13 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = asmparser bcwriter scalaropts ipo ipa transforms
1412 REQUIRES_EH := 1
1513
1614 include $(LEVEL)/Makefile.common
99 LEVEL = ../..
1010
1111 TOOLNAME = gccld
12 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
13 LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
14 LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
15 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
12 LINK_COMPONENTS = bcreader bcwriter ipo scalaropts ipa linker
1613 REQUIRES_EH := 1
1714
1815 include $(LEVEL)/Makefile.common
1212
1313 # Include this here so we can get the configuration of the targets
1414 # that have been configured for construction. We have to do this
15 # early so we can set up USEDLIBS properly before includeing Makefile.rules
15 # early so we can set up LINK_COMPONENTS before including Makefile.rules
1616 include $(LEVEL)/Makefile.config
1717
18 USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
19 LLVMTarget.a \
20 LLVMCodeGen.a \
21 LLVMSelectionDAG.a \
22 LLVMipa.a \
23 LLVMTransforms.a \
24 LLVMScalarOpts.a \
25 LLVMTransformUtils.a \
26 LLVMAnalysis.a \
27 LLVMBCReader.a \
28 LLVMBCWriter.a \
29 LLVMCore.a \
30 LLVMSupport.a \
31 LLVMbzip2.a \
32 LLVMSystem.a
18 LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
3319
3420 include $(LLVM_SRC_ROOT)/Makefile.rules
3521
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-ar
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = archive bcreader
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-bcanalyzer
11 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS := bcreader
1212 REQUIRES_EH := 1
1313
1414 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-db
11 USEDLIBS = LLVMDebugger.a LLVMBCReader.a LLVMCore.a LLVMSupport.a \
12 LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS := debugger bcreader
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-extract
11 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
12 LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
13 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS := bcreader bcwriter ipo
1412 REQUIRES_EH := 1
1513
1614 include $(LEVEL)/Makefile.common
99 LEVEL = ../..
1010
1111 TOOLNAME = llvm-ld
12 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
13 LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
14 LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
15 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
12 LINK_COMPONENTS = ipo scalaropts linker archive bcreader bcwriter
1613 REQUIRES_EH := 1
1714
1815 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-link
11 USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = linker bcreader bcwriter
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-nm
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = archive bcreader
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-prof
11 USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = bcreader analysis
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-ranlib
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
11 LINK_COMPONENTS = archive bcreader
1312 REQUIRES_EH := 1
1413
1514 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvm2cpp
10 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
10 LINK_COMPONENTS = bcreader
1111 REQUIRES_EH := 1
1212
1313 include $(LEVEL)/Makefile.common
1414
1515 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
16 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvmc
10 USEDLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
10 LINK_COMPONENTS = support system
1111 CONFIG_FILES = c cpp ll
1212 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
1313 REQUIRES_EH := 1
294294 if (KeepTemps) flags |= CompilerDriver::KEEP_TEMPS_FLAG;
295295 if (ShowStats) flags |= CompilerDriver::SHOW_STATS_FLAG;
296296 if (TimeActions) flags |= CompilerDriver::TIME_ACTIONS_FLAG;
297 if (TimePassesIsEnabled) flags |= CompilerDriver::TIME_PASSES_FLAG;
298297 if (StripOutput) flags |= CompilerDriver::STRIP_OUTPUT_FLAG;
299298 CD->setDriverFlags(flags);
300299
1616
1717 # Include this here so we can get the configuration of the targets
1818 # that have been configured for construction. We have to do this
19 # early so we can set up USEDLIBS properly before includeing Makefile.rules
19 # early so we can set up LINK_COMPONENTS before includeing Makefile.rules
2020 include $(LEVEL)/Makefile.config
2121
22 USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
23 LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a LLVMTransforms.a \
24 LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \
25 LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a \
26 LLVMCore.a LLVMSupport.a LLVMbzip2.a
22 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts bcreader bcwriter
2723
2824 include $(LEVEL)/Makefile.common
2925
99 TOOLNAME = opt
1010 REQUIRES_EH := 1
1111
12 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
13 LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure \
14 LLVMTransforms.a LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a \
15 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
12 LINK_COMPONENTS := bcreader bcwriter instrumentation scalaropts ipo \
13 datastructure transforms
1614
1715 include $(LEVEL)/Makefile.common