diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-19 21:22:41 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-19 21:22:41 +0200 |
commit | 605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa (patch) | |
tree | b3c7a166f33d9d1ff35cbc1ede202dd89903e81e /Makefile.util | |
parent | 780f056e61323a41abcaf0dd53a44f99bcac197c (diff) | |
download | AGH-engineering-thesis-605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa.tar.gz AGH-engineering-thesis-605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa.zip |
initial work towards translating wasm to stack machine (with a provisional bench)
Diffstat (limited to 'Makefile.util')
-rw-r--r-- | Makefile.util | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.util b/Makefile.util index 7bdc584..02ad5a3 100644 --- a/Makefile.util +++ b/Makefile.util @@ -1,10 +1,10 @@ FILE_LINES = `grep -E '^[[:space:]]*[^[:space:]/]' -c $(1)` -ifdef PROJ_DIR -vpath tclasm.tcl $(PROJ_DIR) -endif +%.mem : $(PROJ_DIR)/tclasm.tcl %.s.tcl + tclsh $^ > $@ -vpath tclasm.tcl . +%.mem : $(PROJ_DIR)/tools/wasm_compile %.wasm + $^ > $@ -%.mem : tclasm.tcl %.s.tcl - tclsh $^ > $@ +%.wasm : %.wat + $(WAT2WASM) $< -o $@ |