48ce02fd84e317fcd9fde2c230b00f026cd43b03
[oota-llvm.git] / tools / llvm-upgrade / Makefile
1 ##===- tools/llvm-upgrade/Makefile -------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
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 ##===----------------------------------------------------------------------===##
9
10 LEVEL = ../..
11 TOOLNAME = llvm-upgrade
12 LINK_COMPONENTS := support system
13
14 include $(LEVEL)/Makefile.common
15
16 # Make the object code file for the lexer depend upon the header file generated
17 # by the Bison parser.  This prevents the Lexer from being compiled before the
18 # header file it needs is built.
19 $(ObjDir)/upgradeLexer.o: $(PROJ_SRC_DIR)/UpgradeParser.h
20
21 test:
22         ../../Debug/bin/llvm-upgrade -o - ../../test/Feature/basictest.ll