summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 20:47:29 -0700
committerGravatar Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 20:47:29 -0700
commit8b7d325b53667ff123531325a410f40e5dd0373a (patch)
treec8137f0c592b898f673ce4cd0082eda2bb99e72d /Makefile
parent6285e3f41483c4e724cc0dcef2eb5239c34d03a8 (diff)
temporary undoing of renaming
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..4cb4597
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+ISASIM_H := ../riscv-isa-run/riscv/opcodes.h
+PK_H := ../riscv-pk/pk/riscv-opc.h
+XCC_H := ../riscv-gcc/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