generated from rpuzonas/raylib-cpp-template
update makefile
This commit is contained in:
parent
0a86af482f
commit
2b6f8014d8
5
Makefile
5
Makefile
@ -3,6 +3,7 @@
|
|||||||
# PLATFORM can be 'web' or 'desktop'
|
# PLATFORM can be 'web' or 'desktop'
|
||||||
PLATFORM ?= desktop
|
PLATFORM ?= desktop
|
||||||
|
|
||||||
|
SHELL := /bin/zsh
|
||||||
TOP_BUILD_DIR := build
|
TOP_BUILD_DIR := build
|
||||||
EXECUTABLE := boids-playground
|
EXECUTABLE := boids-playground
|
||||||
WEB_SHELL := src/shell.html
|
WEB_SHELL := src/shell.html
|
||||||
@ -57,8 +58,9 @@ OBJECT_DEPENDS := $(patsubst %.o, %.d, $(OBJECTS))
|
|||||||
|
|
||||||
LIB_DEPENDENCIES :=
|
LIB_DEPENDENCIES :=
|
||||||
ifeq ($(PLATFORM), web)
|
ifeq ($(PLATFORM), web)
|
||||||
|
export EMSDK_QUIET=1
|
||||||
RAYLIB_PLATFORM := PLATFORM_WEB
|
RAYLIB_PLATFORM := PLATFORM_WEB
|
||||||
CXX := emcc
|
CXX := source $(SUBMODULES_PATH)/emsdk/emsdk_env.sh $(THEN) emcc
|
||||||
EXT = .html
|
EXT = .html
|
||||||
|
|
||||||
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
|
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
|
||||||
@ -106,7 +108,6 @@ lib: submodules $(LIB_DEPENDENCIES)
|
|||||||
emsdk: submodules
|
emsdk: submodules
|
||||||
cd $(SUBMODULES_PATH)/emsdk $(THEN) ./emsdk install latest
|
cd $(SUBMODULES_PATH)/emsdk $(THEN) ./emsdk install latest
|
||||||
cd $(SUBMODULES_PATH)/emsdk $(THEN) ./emsdk activate latest
|
cd $(SUBMODULES_PATH)/emsdk $(THEN) ./emsdk activate latest
|
||||||
EMSDK_QUIET=1 source $(SUBMODULES_PATH)/emsdk/emsdk_env.sh
|
|
||||||
|
|
||||||
# Link the program and create the executable
|
# Link the program and create the executable
|
||||||
$(MAIN_TARGET): $(OBJECTS)
|
$(MAIN_TARGET): $(OBJECTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user