diff options
| author | Brian Campbell | 2018-06-22 15:21:42 +0100 |
|---|---|---|
| committer | Brian Campbell | 2018-06-22 15:26:32 +0100 |
| commit | 877d9fbfc44ebbdb0dee62c71d15d0055e811dee (patch) | |
| tree | 8ae8c47847d98a529df91765d3acf27e5192706d | |
| parent | 91fa030034661953f2299a41c31fb7647288b4cb (diff) | |
Add coq generation rule for mips
| -rw-r--r-- | mips/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mips/Makefile b/mips/Makefile index 007d56c7..627f998e 100644 --- a/mips/Makefile +++ b/mips/Makefile @@ -29,6 +29,10 @@ mips.lem: $(MIPS_PRE) $(SAIL_LIB_DIR)/mono_rewrites.sail $(MIPS_TLB) $(MIPS_SAIL $(SAIL) -lem -o mips -auto_mono -mono_rewrites -lem_mwords -lem_lib Mips_extras -undefined_gen -memo_z3 $^ mips_types.lem: mips.lem +mips.v: $(MIPS_PRE) $(MIPS_TLB) $(MIPS_SAILS) + $(SAIL) -coq -dcoq_undef_axioms -o mips -coq_lib mips_extras -undefined_gen -memo_z3 $^ +mips_types.v: mips.v + M%.thy: m%.lem m%_types.lem mips_extras.lem lem -isa -outdir . -lib $(SAIL_DIR)/src/gen_lib -lib $(SAIL_DIR)/src/lem_interp $^ sed -i 's/datatype ast/datatype (plugins only: size) ast/' M$*_types.thy @@ -45,4 +49,5 @@ include ../etc/loc.mk clean: rm -rf mips Mips.thy mips.lem mips_types.lem _sbuild mips.c mips_c rm -f mipsScript.sml mips_typesScript.sml mips_extrasScript.sml + rm -f mips.v mips_types.v -Holmake cleanAll |
