summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authororangerot <orangerot@orangerot.dev>2025-10-15 17:16:50 +0200
committerorangerot <orangerot@orangerot.dev>2025-10-15 17:16:50 +0200
commitd6f9adad132feaec9343d81c6794f060d631b86a (patch)
treebe2be12d9ab373cd8f380a194d0e14326fc5103f /Makefile
parent83967090c217bc2d29b94bf09dcf231ad3a202ee (diff)
feat: minshell for web exportdungeon
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1ea3545..8dccdf8 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ LDFLAGS = -lglfw -lm -lGL -I./glad/include
SOURCES = main.c game.c game.h glad/src/glad.c assets/white_and_blue_dominoes.h assets/red_and_peach_dominoes.h domino.c domino.h
domino-dungeon: ${SOURCES}
- $(CC) ${CFLAGS} -o $@ $^ ${LDFLAGS}
+ $(CC) ${CFLAGS} -o $@ $^ ${LDFLAGS}
assets/%.h: src_build/domino_assets
$< assets/1bit_dominoes_asset_pack/$*.png $* > $@
@@ -14,6 +14,6 @@ src_build/domino_assets: src_build/domino_assets.c
$(CC) -o $@ $^ -lm
# https://gist.github.com/ousttrue/0f3a11d5d28e365b129fe08f18f4e141
-domino-dungeon.html: ${SOURCES}
- emcc -sUSE_WEBGL2=1 -sUSE_GLFW=3 -sWASM=1 -I./glad/include $(filter %.c,$^) -o $@
+index.html: ${SOURCES}
+ emcc -sUSE_WEBGL2=1 -sUSE_GLFW=3 -sWASM=1 --shell-file=minshell.html -I./glad/include $(filter %.c,$^) -o $@