From e50368308b1f08eb4ee7ca30d8a581914d57d812 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Wed, 4 Nov 2026 23:28:29 +0300 Subject: [PATCH] fix web build --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2119ecc..e318791 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,13 @@ EMFLAGS := -O2 -DPLATFORM_WEB \ --shell-file shell.html \ --preload-file ./res@/res +WEB_OBJECTS := web/menu.o web/game.o + +web/%.o: %.sex + mkdir -p web + $(WEB_SEXC) $< -c -o $@ -- \ + $(CFLAGS) $(INCLUDES) + web/libraylib.web.a: mkdir -p web $(MAKE) -C $(RAYLIB_SRC) \ @@ -65,9 +72,10 @@ web/libraylib.web.a: GRAPHICS=GRAPHICS_API_OPENGL_ES2 \ RAYLIB_RELEASE_PATH=$(abspath ./web) -web/index.html: main.sex shell.html web/libraylib.web.a +web/index.html: $(WEB_OBJECTS) main.sex shell.html web/libraylib.web.a $(WEB_SEXC) main.sex -o $@ -- \ -I$(RAYLIB_SRC) \ + $(WEB_OBJECTS) \ ./web/libraylib.web.a \ $(EMFLAGS)