From 4629675329f872c9dd4672402b9b9e5e593fec19 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 16:51:36 +1000 Subject: Building and running for emscripten. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf