llvm-6502/utils/TableGen/Makefile

28 lines
489 B
Makefile
Raw Normal View History

LEVEL = ../..
TOOLNAME = tblgen
USEDLIBS = support.a
include $(LEVEL)/Makefile.common
clean::
-rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-rm -f FileParser.output
dump:: $(TOOLEXENAME_G)
$(TOOLEXENAME_G) < X86.td
parse: $(TOOLEXENAME_G)
$(TOOLEXENAME_G) < X86.td -parse
test:: $(TOOLEXENAME_G)
@echo "enum {"
@$(TOOLEXENAME_G) < X86.td -class=Register
@echo
@echo "};"
@echo "enum {"
@$(TOOLEXENAME_G) < X86.td -class=Instruction
@echo
@echo "};"