Use LINK_COMPONENTS to specify *components* to link against instead of
authorChris Lattner <sabre@nondot.org>
Mon, 4 Sep 2006 05:59:09 +0000 (05:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 4 Sep 2006 05:59:09 +0000 (05:59 +0000)
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

18 files changed:
tools/bugpoint/Makefile
tools/gccas/Makefile
tools/gccld/Makefile
tools/llc/Makefile
tools/llvm-ar/Makefile
tools/llvm-bcanalyzer/Makefile
tools/llvm-db/Makefile
tools/llvm-extract/Makefile
tools/llvm-ld/Makefile
tools/llvm-link/Makefile
tools/llvm-nm/Makefile
tools/llvm-prof/Makefile
tools/llvm-ranlib/Makefile
tools/llvm2cpp/Makefile
tools/llvmc/Makefile
tools/llvmc/llvmc.cpp
tools/lto/Makefile
tools/opt/Makefile

index b713650983d59cdd9d4bac71d6e845ec13adc5ba..4c4aa0cb0ceaedc6ddcc7e3b197e538066508a5c 100644 (file)
@@ -10,13 +10,8 @@ LEVEL = ../..
 
 TOOLNAME = bugpoint
 
-OPTLIBS  = LLVMTransforms.a LLVMInstrumentation.a
-ANALIBS  = LLVMDataStructure LLVMipa.a LLVMTarget.a 
-
-USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
-          LLVMTransformUtils.a \
-          LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := bcreader bcwriter asmparser instrumentation scalaropts ipo \
+                   datastructure transforms linker
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 1f62ade4ed2e1f7856ffd4051e133a926054e593..8664354195a82dc0341833a089f0fa7f90690ef4 100644 (file)
@@ -9,9 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = gccas
-USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
-           LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
-           LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = asmparser bcwriter scalaropts ipo ipa transforms
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 7638f7fb25d3ea8df29cf64a373e17a6ec1b5f97..38261d913a561d59ca97f222e8e0cebaf55d36d4 100644 (file)
 LEVEL = ../..
 
 TOOLNAME = gccld
-USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
-           LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
-           LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
-           LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = bcreader bcwriter ipo scalaropts ipa linker
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 812e59a224f16c9bf09d77e9ba9907337e680a63..847a175d25d7fb665f755dd4a32430609ce94a0b 100644 (file)
@@ -13,24 +13,10 @@ REQUIRES_EH := 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 USEDLIBS properly before includeing Makefile.rules
+# early so we can set up LINK_COMPONENTS before including Makefile.rules
 include $(LEVEL)/Makefile.config
 
-USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
-       LLVMTarget.a \
-       LLVMCodeGen.a \
-       LLVMSelectionDAG.a \
-       LLVMipa.a \
-       LLVMTransforms.a \
-       LLVMScalarOpts.a \
-       LLVMTransformUtils.a \
-       LLVMAnalysis.a \
-       LLVMBCReader.a \
-       LLVMBCWriter.a \
-       LLVMCore.a \
-       LLVMSupport.a \
-       LLVMbzip2.a \
-       LLVMSystem.a
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
 
 include $(LLVM_SRC_ROOT)/Makefile.rules
 
index 18da61768206cb0489285f0b1c8bc19e47d8c54e..bf1516732a61281cbe769a7846f57e66ca107499 100644 (file)
@@ -9,8 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-ar
-USEDLIBS = LLVMArchive.a LLVMBCReader.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = archive bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index b3acd0157e0034d34dd8ba10a7577ed8a9234028..65be92123f6370df3aef15908301d9d5b657caf4 100644 (file)
@@ -9,7 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-bcanalyzer
-USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 3bf9d54afd264194f24e896ba8843e5839cde8eb..7c0d58a226ad7988fcdafc559c7673cceec3495d 100644 (file)
@@ -9,8 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llvm-db
-USEDLIBS = LLVMDebugger.a LLVMBCReader.a LLVMCore.a LLVMSupport.a \
-         LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := debugger bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 20a107c5c76794815e4fef91e5b3bd53306266a1..8efe423a98b520b38c461808354884f01f0435e4 100644 (file)
@@ -9,9 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-extract
-USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
-          LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
-           LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := bcreader bcwriter ipo
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 636aea4ef61574bc10e2de9b7f3e22548f42e3c2..dc8bffb742bf3017ab8a5ba9c151b37ce9778841 100644 (file)
 LEVEL = ../..
 
 TOOLNAME = llvm-ld
-USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
-          LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
-          LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = ipo scalaropts linker archive bcreader bcwriter
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 0663396cdd964b48353c90a2eaaba57d2fa7fe15..f97613586711275d7f19a6d3e8aa12710cde33b2 100644 (file)
@@ -9,8 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-link
-USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = linker bcreader bcwriter
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index c7502e23061122e63d0975221e595839772f193b..5e18c4a1629b139187561892085838220902fbe9 100644 (file)
@@ -9,8 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-nm
-USEDLIBS = LLVMArchive.a LLVMBCReader.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = archive bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 9774f64fa1a97f4ee43ade5d527d609d34b94dec..b745e654927ee8e572d4b6c4cf8abb3591fdc7bc 100644 (file)
@@ -9,8 +9,7 @@
 LEVEL = ../..
 
 TOOLNAME = llvm-prof
-USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
-           LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = bcreader analysis
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index 1379532f5eeb24d7ccc190f3d2d420a34f088969..ca4d0ce85d1017a05f2cf8b1699ae03f6f7b36bb 100644 (file)
@@ -9,8 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llvm-ranlib
-USEDLIBS = LLVMArchive.a LLVMBCReader.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = archive bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
index cc3169c46f11d52524a0eae3be2ff61393f56ea8..88db590c9bf214e3ed20f4c3bff1b3b74c2c324c 100644 (file)
@@ -8,10 +8,9 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = llvm2cpp
-USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS = bcreader
 REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
 
 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
-CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
index 2ccf85a55a7e93fbc2072c4368b0cabca235a2d7..335ac5904c21c2b858d261a81ac6fdae945cae2b 100644 (file)
@@ -8,7 +8,7 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = llvmc
-USEDLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
+LINK_COMPONENTS = support system
 CONFIG_FILES = c cpp ll
 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
 REQUIRES_EH := 1
index f2e7c1fb37b966b87b8b45a48187f9379dec8f81..3b22149db3cf3e20276ff553fd24bb30dc80e296 100644 (file)
@@ -295,7 +295,6 @@ int main(int argc, char **argv) {
     if (KeepTemps)      flags |= CompilerDriver::KEEP_TEMPS_FLAG;
     if (ShowStats)      flags |= CompilerDriver::SHOW_STATS_FLAG;
     if (TimeActions)    flags |= CompilerDriver::TIME_ACTIONS_FLAG;
-    if (TimePassesIsEnabled) flags |= CompilerDriver::TIME_PASSES_FLAG;
     if (StripOutput)    flags |= CompilerDriver::STRIP_OUTPUT_FLAG;
     CD->setDriverFlags(flags);
 
index c2daead4dfdb9413ee22a087b11993cde5c0612e..c7befa44c108f66767ac89763ec2855d75c228f2 100644 (file)
@@ -17,14 +17,10 @@ DONT_BUILD_RELINKED = 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 USEDLIBS properly before includeing Makefile.rules
+# early so we can set up LINK_COMPONENTS before includeing Makefile.rules
 include $(LEVEL)/Makefile.config
 
-USEDLIBS := $(addprefix LLVM,$(TARGETS_TO_BUILD)) \
-       LLVMSelectionDAG.a LLVMCodeGen.a LLVMipo.a LLVMTransforms.a \
-       LLVMScalarOpts.a LLVMipa.a LLVMTransformUtils.a LLVMAnalysis.a \
-       LLVMTarget.a LLVMBCReader.a LLVMBCWriter.a LLVMSystem.a LLVMLinker.a \
-       LLVMCore.a LLVMSupport.a LLVMbzip2.a
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts bcreader bcwriter
 
 include $(LEVEL)/Makefile.common
 
index 4bb9ed53b1af52525bcddea462771346edcbe6ac..787136e9219899713b75f30cb8283968af23c43e 100644 (file)
@@ -10,9 +10,7 @@ LEVEL = ../..
 TOOLNAME = opt
 REQUIRES_EH := 1
 
-USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
-          LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure \
-          LLVMTransforms.a LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a \
-          LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a 
+LINK_COMPONENTS := bcreader bcwriter instrumentation scalaropts ipo \
+                   datastructure transforms
 
 include $(LEVEL)/Makefile.common