aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 90298477bf826f3c703c34c29bc7f232067a5324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ISASIM_H := ../riscv-isa-run/riscv/opcodes.h
PK_H := ../pk/pk/riscv-opc.h
XCC_H := ../xcc/src/include/opcode/mips-riscv-opc.h

install: $(ISASIM_H) $(PK_H) $(XCC_H) inst.v instr-table.tex

$(ISASIM_H): opcodes parse-opcodes
	./parse-opcodes -isasim < $< > $@

$(PK_H): opcodes parse-opcodes
	./parse-opcodes -disasm < $< > $@

$(XCC_H): opcodes parse-opcodes
	./parse-opcodes -disasm < $< > $@

inst.v: opcodes parse-opcodes
	./parse-opcodes -verilog < $< > $@

instr-table.tex: opcodes parse-opcodes
	./parse-opcodes -tex < $< > $@

.PHONY : install