fix web build

This commit is contained in:
2026-11-04 23:28:29 +03:00
parent 2b6804e53f
commit e50368308b

View File

@@ -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)