mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-31 09:11:13 +00:00
7a73b80b90
system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
775 B
Makefile
37 lines
775 B
Makefile
LEVEL = ../..
|
|
TOOLNAME = tblgen
|
|
USEDLIBS = support.a
|
|
|
|
.PRECIOUS: FileLexer.cpp FileParser.cpp
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
#
|
|
# Make the source file depend on the header file. In this way, dependencies
|
|
# (which depend on the source file) won't get generated until bison is done
|
|
# generating the C source and header files for the parser.
|
|
#
|
|
FileLexer.cpp: FileParser.h
|
|
|
|
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 "};"
|