aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 19 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index cce19cd..a6ea5db 100644
--- a/Makefile
+++ b/Makefile
@@ -4,51 +4,49 @@ PK_H := ../riscv-pk/machine/encoding.h
ENV_H := ../riscv-tests/env/encoding.h
OPENOCD_H := ../riscv-openocd/src/target/riscv/encoding.h
INSTALL_HEADER_FILES := $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H)
+PSEUDO_FLAG := $(if $(PSEUDO),-pseudo,)
+
default: everything
-.PHONY : everything
+.PHONY: everything encoding.out.h inst.chisel inst.go latex inst.sverilog inst.rs clean install instr-table.tex priv-instr-table.tex inst.spinalhdl pseudo
+
+pseudo:
+ @$(MAKE) PSEUDO=1 everything
+
everything:
- @./parse.py -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS)
+ @./parse.py $(PSEUDO_FLAG) -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS)
-.PHONY : encoding.out.h
encoding.out.h:
- @./parse.py -c rv* unratified/rv_* unratified/rv32* unratified/rv64*
+ @./parse.py -c $(PSEUDO_FLAG) rv* unratified/rv_* unratified/rv32* unratified/rv64*
-.PHONY : inst.chisel
inst.chisel:
- @./parse.py -chisel $(EXTENSIONS)
+ @./parse.py -chisel $(PSEUDO_FLAG) $(EXTENSIONS)
-.PHONY : inst.go
inst.go:
- @./parse.py -go $(EXTENSIONS)
+ @./parse.py -go $(PSEUDO_FLAG) $(EXTENSIONS)
-.PHONY : latex
latex:
- @./parse.py -latex $(EXTENSIONS)
+ @./parse.py -latex $(PSEUDO_FLAG) $(EXTENSIONS)
-.PHONY : inst.sverilog
inst.sverilog:
- @./parse.py -sverilog $(EXTENSIONS)
+ @./parse.py -sverilog $(PSEUDO_FLAG) $(EXTENSIONS)
-.PHONY : inst.rs
inst.rs:
- @./parse.py -rust $(EXTENSIONS)
+ @./parse.py -rust $(PSEUDO_FLAG) $(EXTENSIONS)
-.PHONY : clean
clean:
rm -f inst* priv-instr-table.tex encoding.out.h
-.PHONY : install
install: everything
- set -e; for FILE in $(INSTALL_HEADER_FILES); do cp -f encoding.out.h $$FILE; done
+ set -e; \
+ for FILE in $(INSTALL_HEADER_FILES); do \
+ cp -f encoding.out.h $$FILE; \
+ done
-.PHONY: instr-table.tex
instr-table.tex: latex
-.PHONY: priv-instr-table.tex
priv-instr-table.tex: latex
-.PHONY: inst.spinalhdl
inst.spinalhdl:
- @./parse.py -spinalhdl $(EXTENSIONS)
+ @./parse.py -spinalhdl $(PSEUDO_FLAG) $(EXTENSIONS)