From 2b6f8014d8cecebbe412b1e1a500217c04c9f63a Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 20 Jul 2023 03:17:36 +0300 Subject: [PATCH] update makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 871b717..e79573b 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ # PLATFORM can be 'web' or 'desktop' PLATFORM ?= desktop +SHELL := /bin/zsh TOP_BUILD_DIR := build EXECUTABLE := boids-playground WEB_SHELL := src/shell.html @@ -57,8 +58,9 @@ OBJECT_DEPENDS := $(patsubst %.o, %.d, $(OBJECTS)) LIB_DEPENDENCIES := ifeq ($(PLATFORM), web) + export EMSDK_QUIET=1 RAYLIB_PLATFORM := PLATFORM_WEB - CXX := emcc + CXX := source $(SUBMODULES_PATH)/emsdk/emsdk_env.sh $(THEN) emcc EXT = .html EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten @@ -106,7 +108,6 @@ lib: submodules $(LIB_DEPENDENCIES) emsdk: submodules cd $(SUBMODULES_PATH)/emsdk $(THEN) ./emsdk install 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 $(MAIN_TARGET): $(OBJECTS)