aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index db37b0e..d435c7c 100644
--- a/makefile
+++ b/makefile
@@ -4,4 +4,5 @@ run:
./forth
run-rlwrap:
rlwrap -r -f rlwrapcompletions.forth ./forth
-
+build-wasm:
+ emcc forth.c optable.c stack.c -Wall -o forthlib.js -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']"