aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/Makefile
blob: 21c68c6b02d1d5b93f7f66f66404a54769017509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 "};"