llvm-6502/utils/TableGen/Makefile

30 lines
530 B
Makefile
Raw Normal View History

LEVEL = ../..
TOOLNAME = tblgen
USEDLIBS = support.a
.PRECIOUS: FileLexer.cpp FileParser.cpp
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 "};"