Move branch folding test to a better location.
[oota-llvm.git] / tools / llvm-ar / Makefile
index e4fe4e8ca39a788995418cab22ec82f4c43f6183..824bb9473000d6dd0b8a1c4a646faaa92ec531a1 100644 (file)
@@ -6,20 +6,16 @@
 # License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
-LEVEL = ../..
 
-TOOLNAME = llvm-ar
-LINK_COMPONENTS = archive
-REQUIRES_EH := 1
+LEVEL := ../..
+TOOLNAME := llvm-ar
+TOOLALIAS = llvm-ranlib
+LINK_COMPONENTS := all-targets bitreader libdriver support object
 
 # This tool has no plugins, optimize startup time.
-TOOL_NO_EXPORTS = 1
+TOOL_NO_EXPORTS := 1
 
 include $(LEVEL)/Makefile.common
 
-check-local::
-       $(Echo) Checking llvm-ar
-       $(Verb) $(ToolDir)/llvm-ar zRrS nada.a .
-       $(Verb) $(ToolDir)/llvm-ar tv nada.a | \
-         grep Debug/llvm-ar.d >/dev/null 2>&1
-       $(Verb) $(RM) -f nada.a
+all-local::
+       $(Verb) $(AliasTool) $(notdir $(ToolBuildPath)) $(ToolDir)/llvm-lib$(EXEEXT)