Makefile MINGW detection

This commit is contained in:
Pan7 2022-02-26 03:17:45 +01:00
parent 99b66faa02
commit 61475598b0
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ ifeq ($(shell uname -m), aarch64)
COMPILE_ARCH=arm64 COMPILE_ARCH=arm64
endif endif
ifneq (,$(findstring MINGW32,$(shell uname)))
COMPILE_PLATFORM=mingw32
endif
ifneq (,$(findstring MINGW64,$(shell uname)))
COMPILE_PLATFORM=mingw64
endif
ifeq ($(COMPILE_PLATFORM),sunos) ifeq ($(COMPILE_PLATFORM),sunos)
# Solaris uname and GNU uname differ # Solaris uname and GNU uname differ
COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/') COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/')