Initial checkin of TableGen utility
[oota-llvm.git] / utils / TableGen / Makefile
1 LEVEL = ../..
2 TOOLNAME = tblgen
3 USEDLIBS = support.a
4
5 include $(LEVEL)/Makefile.common
6
7 clean::
8         -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
9         -rm -f FileParser.output
10
11 test::
12         $(TOOLEXENAME_G) < X86.td
13         # -parse
14
15         @echo "enum {"
16         @$(TOOLEXENAME_G) < X86.td -class=Register
17         @echo 
18         @echo "};"
19
20         @echo "enum {"
21         @$(TOOLEXENAME_G) < X86.td -class=Instruction
22         @echo 
23         @echo "};"