Couple of fixes to mention bunzip2 and make instructions more clear.
[llvm-complete.git] / tools / llvm-upgrade / Makefile
blob1bd936b000d26cf4c128eb42eee3e5919d0d0e7d
1 ##===- tools/llvm-upgrade/Makefile -------------------------*- Makefile -*-===##
2 #
3 # The LLVM Compiler Infrastructure
5 # This file was developed by Reid Spencer and is distributed under the
6 # University of Illinois Open Source License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
10 LEVEL = ../..
11 TOOLNAME = llvm-upgrade
12 LINK_COMPONENTS := Core support system
13 REQUIRES_EH := 1
15 include $(LEVEL)/Makefile.common
17 # Make the object code file for the lexer depend upon the header file generated
18 # by the Bison parser. This prevents the Lexer from being compiled before the
19 # header file it needs is built.
20 $(ObjDir)/upgradeLexer.o: $(PROJ_SRC_DIR)/UpgradeParser.h
22 TESTCASE=../../test/Regression/Assembler/2004-09-29-VerifierIsReallySlow.llx
23 test:
24 llvm-as $(TESTCASE) -o - | llvm-dis -o source.ll -f
25 ../../Debug/bin/llvm-upgrade -o - $(TESTCASE) 2>err.out | llvm-as | \
26 llvm-dis > upgrade.ll -f
27 diff source.ll upgrade.ll > diff.out
29 valgrind:
30 valgrind ../../Debug/bin/llvm-upgrade -o /dev/null -f $(TESTCASE)
32 $(ObjDir)/UpgradeLexer.o: $(PROJ_SRC_DIR)/UpgradeParser.y $(PROJ_SRC_DIR)/UpgradeParser.h