aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-30 18:23:54 -0400
committerdan <[email protected]>2023-05-30 18:23:54 -0400
commit24272d599e1886a8fb47e3e47d33a0aa7dd74e22 (patch)
tree3105c1638ff0bb909dff1023102a8e0fe809c83c /makefile
parent66d61a5546e5e0173f92e941ab489a1c6474473e (diff)
downloadforth-24272d599e1886a8fb47e3e47d33a0aa7dd74e22.tar.gz
forth-24272d599e1886a8fb47e3e47d33a0aa7dd74e22.tar.bz2
forth-24272d599e1886a8fb47e3e47d33a0aa7dd74e22.zip
feat: web version also uses c code, compiled to wasm
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']"