John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 1 | ##===- tools/llvm-ar/Makefile ------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 5116784 | 2007-12-29 20:07:17 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
Tanya Lattner | 14baebf | 2003-08-28 15:22:38 +0000 | [diff] [blame] | 9 | LEVEL = ../.. |
| 10 | |
Reid Spencer | 5da2d08 | 2005-05-19 21:03:11 +0000 | [diff] [blame] | 11 | TOOLNAME = llvm-ar |
Chris Lattner | 5e3c9f9 | 2007-05-06 05:58:00 +0000 | [diff] [blame] | 12 | LINK_COMPONENTS = archive |
Chris Lattner | 0465fa9 | 2006-07-07 00:46:19 +0000 | [diff] [blame] | 13 | REQUIRES_EH := 1 |
Tanya Lattner | 14baebf | 2003-08-28 15:22:38 +0000 | [diff] [blame] | 14 | |
| 15 | include $(LEVEL)/Makefile.common |
Reid Spencer | c7ebfdd | 2004-11-14 22:19:21 +0000 | [diff] [blame] | 16 | |
| 17 | check-local:: |
Reid Spencer | 1a3ba7f | 2004-11-29 04:51:58 +0000 | [diff] [blame] | 18 | $(Echo) Checking llvm-ar |
| 19 | $(Verb) $(ToolDir)/llvm-ar zRrS nada.a . |
| 20 | $(Verb) $(ToolDir)/llvm-ar tv nada.a | \ |
| 21 | grep Debug/llvm-ar.d >/dev/null 2>&1 |
| 22 | $(Verb) $(RM) -f nada.a |