aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25e0cec..b840482 100644
--- a/Makefile
+++ b/Makefile
@@ -132,6 +132,13 @@ pack_assets:
$(compiler) -O3 -Wall pack.c -o packer
$(pack_cmd) $(assets)
+emscripten: $(target)
+ mkdir -p ems/out
+ emcc $(sources) -o ems/out/mallocbullet.html \
+ --embed-file pack -Dplat_sdl2 -Dplat_emscripten -sUSE_SDL=2 \
+ -sTOTAL_MEMORY=67108864 --shell-file ems/template.html \
+ --post-js ems/post_run.js
+
-include $(objects:%.o=%.d)
$(target): $(objects) assets pack_assets