5 .PRECIOUS: FileLexer.cpp FileParser.cpp
7 include $(LEVEL)/Makefile.common
10 # Make the source file depend on the header file. In this way, dependencies
11 # (which depend on the source file) won't get generated until bison is done
12 # generating the C source and header files for the parser.
14 FileLexer.cpp: FileParser.h
17 -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
18 -rm -f FileParser.output
21 dump:: $(TOOLEXENAME_G)
22 $(TOOLEXENAME_G) < X86.td
24 parse: $(TOOLEXENAME_G)
25 $(TOOLEXENAME_G) < X86.td -parse
27 test:: $(TOOLEXENAME_G)
29 @$(TOOLEXENAME_G) < X86.td -class=Register
34 @$(TOOLEXENAME_G) < X86.td -class=Instruction