summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/makefile b/makefile
index 24adcc8151d..2094e226d3b 100644
--- a/makefile
+++ b/makefile
@@ -234,12 +234,28 @@ $(error Unable to detect OS from uname -a: $(UNAME))
endif
endif
-MINGW:=
+ifdef MSYSTEM
+MINGW := $(MINGW_PREFIX)
+ifeq ($(MSYSTEM),MINGW32)
+ MINGW32 := $(MINGW_PREFIX)
+endif
+ifeq ($(MSYSTEM),MINGW64)
+ MINGW64 := $(MINGW_PREFIX)
+endif
+ifeq ($(MSYSTEM),CLANGARM64)
+ MINGW64 := $(MINGW_PREFIX)
+endif
+ifndef TOOLCHAIN
+ TOOLCHAIN := $(MINGW_PREFIX)/bin/
+endif
+else # MSYSTEM
+MINGW :=
ifdef MINGW64
MINGW := $(MINGW64)
-else
+else # MINGW64
MINGW := $(MINGW32)
-endif
+endif # MINGW64
+endif # MSYSTEM
#-------------------------------------------------
# specify core target: mame, ldplayer