summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Norton2016-05-26 11:57:34 +0100
committerRobert Norton2016-05-26 11:57:34 +0100
commit249361793931443c71d2097148fa4c7fa1b4bc4b (patch)
treed3bf977851f9cae3a702b86afc25e84ab4e984f3
parent132feff6beb27bc9c0cacc293bbf5242857c333a (diff)
add makery for mips/cheir LOC count.
-rw-r--r--src/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index cd21ed1a..45a0dcad 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -53,6 +53,18 @@ _build/cheri.lem: $(CHERI_SAILS) ./sail.native
cd _build ;\
../sail.native -lem_ast -o cheri $(CHERI_SAILS)
+_build/mips_all.sail: $(MIPS_SAILS)
+ cat $(MIPS_SAILS) > $@
+
+_build/cheri_all.sail: $(CHERI_SAILS)
+ cat $(CHERI_SAILS) > $@
+
+_build/%_trimmed.sail: _build/%_all.sail
+ grep -v -e '^\s*$$' $< > $@
+
+count: _build/cheri_trimmed.sail _build/mips_trimmed.sail
+ wc -l $^
+
%.ml: %.lem
$(LEM) -only_changed_output -ocaml -lib lem_interp/ $<