mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
4767a0c1b6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4878 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
530 B
Makefile
30 lines
530 B
Makefile
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 "};"
|