1##===- tools/llvm-ar/Makefile ------------------------------*- Makefile -*-===##
2# 
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7# 
8##===----------------------------------------------------------------------===##
9LEVEL = ../..
10
11TOOLNAME = llvm-ar
12LINK_COMPONENTS = archive
13REQUIRES_EH := 1
14
15# This tool has no plugins, optimize startup time.
16TOOL_NO_EXPORTS = 1
17
18include $(LEVEL)/Makefile.common
19
20check-local::
21	$(Echo) Checking llvm-ar
22	$(Verb) $(ToolDir)/llvm-ar zRrS nada.a .
23	$(Verb) $(ToolDir)/llvm-ar tv nada.a | \
24	  grep Debug/llvm-ar.d >/dev/null 2>&1
25	$(Verb) $(RM) -f nada.a
26