From 61475598b050b996e2b299184cf6a78b9f7b4e4f Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sat, 26 Feb 2022 03:17:45 +0100 Subject: [PATCH] Makefile MINGW detection --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 9e535559..66e9ad0d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,14 @@ ifeq ($(shell uname -m), aarch64) COMPILE_ARCH=arm64 endif +ifneq (,$(findstring MINGW32,$(shell uname))) + COMPILE_PLATFORM=mingw32 +endif + +ifneq (,$(findstring MINGW64,$(shell uname))) + COMPILE_PLATFORM=mingw64 +endif + ifeq ($(COMPILE_PLATFORM),sunos) # Solaris uname and GNU uname differ COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/')