2002-12-02 01:23:04 +00:00
|
|
|
LEVEL = ../..
|
|
|
|
TOOLNAME = tblgen
|
|
|
|
USEDLIBS = support.a
|
|
|
|
|
2002-12-03 06:00:11 +00:00
|
|
|
.PRECIOUS: FileLexer.cpp FileParser.cpp
|
|
|
|
|
2002-12-02 01:23:04 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
clean::
|
|
|
|
-rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
|
|
|
|
-rm -f FileParser.output
|
|
|
|
|
2002-12-02 16:13:42 +00:00
|
|
|
|
2002-12-02 16:31:46 +00:00
|
|
|
dump:: $(TOOLEXENAME_G)
|
2002-12-02 01:23:04 +00:00
|
|
|
$(TOOLEXENAME_G) < X86.td
|
2002-12-02 16:13:42 +00:00
|
|
|
|
2002-12-02 16:31:46 +00:00
|
|
|
parse: $(TOOLEXENAME_G)
|
2002-12-02 16:13:42 +00:00
|
|
|
$(TOOLEXENAME_G) < X86.td -parse
|
|
|
|
|
2002-12-02 16:31:46 +00:00
|
|
|
test:: $(TOOLEXENAME_G)
|
2002-12-02 01:23:04 +00:00
|
|
|
@echo "enum {"
|
|
|
|
@$(TOOLEXENAME_G) < X86.td -class=Register
|
|
|
|
@echo
|
|
|
|
@echo "};"
|
|
|
|
|
|
|
|
@echo "enum {"
|
|
|
|
@$(TOOLEXENAME_G) < X86.td -class=Instruction
|
|
|
|
@echo
|
|
|
|
@echo "};"
|