summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex <libretro@gmail.com>2020-10-07 13:32:46 +0200
committertwinaphex <libretro@gmail.com>2021-03-12 08:42:23 +0100
commit556e1be14b3f1647f8e07d47694c971ba5ee296e (patch)
treec10500e43d8eace7e4f9f13bb410f2d0c13ebf65
parent157bb251956fd6406f3c7de94bebd98bc1ffb30f (diff)
Use MSYSTEM
-rw-r--r--Makefile.libretro5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index 0fcca72..b6f98b6 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -2,19 +2,20 @@ UNAME=$(shell uname -s)
UNAMEM=$(shell uname -m)
platform ?= unix
+
ifeq ($(platform), emscripten)
platform = emscripten
ABI := x86_64
target = libblastem.so
libname = blastem_libretro_emscripten.bc
-else ifneq ($(findstring MINGW64,$(UNAME)),)
+else ifeq ($(MSYSTEM),MINGW64)
platform = win
OS :=Windows
CC ?=gcc
ABI := x86_64
target = libblastem.dll
libname = blastem_libretro.dll
-else ifneq ($(findstring MINGW32,$(UNAME)),)
+else ifeq ($(MSYSTEM),MINGW32)
platform = win
OS :=Windows
CC ?=gcc