fix web build
This commit is contained in:
10
Makefile
10
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user