Adjust build for Linux

This commit is contained in:
2022-04-04 18:17:32 +02:00
parent b55b9b3138
commit c77e90ab76
6 changed files with 28 additions and 63 deletions

View File

@@ -20,16 +20,17 @@ LDFLAGS := $(shell $(GameLibConfig) $(ARCH) --ldflags)
RES_GAME := game$(EXEEXT)
BUILDDIR := build-$(PLATFORM)
IsMinGW := $(findstring MINGW,$(shell uname -s)) $(findstring MSYS,$(shell uname -s))
IsDarwin := $(findstring Darwin,$(shell uname -s))
ifneq (,$(IsMinGW))
HOST_ARCH :=
HOST_OS := $(shell uname -o )
HOST_KERNEL := $(shell uname -s )
ifeq ($(HOST_OS),Msys)
HOST_ARCH := mingw
else
ifneq (,$(IsDarwin))
HOST_ARCH := macosx
else
endif
ifeq ($(HOST_KERNEL),Linux)
HOST_ARCH := linux
endif
ifeq ($(HOST_KERNEL),Darwin)
HOST_ARCH := macosx
endif
ifeq ($(HOST_ARCH),mingw)

View File

@@ -1,4 +1,8 @@
source /c/emsdk/emsdk_env.sh
#!/bin/sh
if test -f /c/emsdk/emsdk_env.sh; then
source /c/emsdk/emsdk_env.sh
fi
make arch=emscripten full-clean
make arch=emscripten