add support for new codes/block
[oota-llvm.git] / tools / llvm-ar / Makefile
index 938f73ef11a8d67f71a2079d70a5d9aef207ce2c..bf1516732a61281cbe769a7846f57e66ca107499 100644 (file)
@@ -8,7 +8,15 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 
-TOOLNAME = llvm-ar 
-USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
+TOOLNAME = llvm-ar
+LINK_COMPONENTS = archive bcreader
+REQUIRES_EH := 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