From 7386a2f40f51ae8904cded1de2722676db0960c5 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 2 Jan 2025 19:53:59 +0100 Subject: [PATCH] let windoze detect 64bit mingw in makefile lets us use just "make" cmd without specifieng any other crap on mingw64 --- src/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index e26b696b3..515f2d533 100644 --- a/src/Makefile +++ b/src/Makefile @@ -81,13 +81,18 @@ ALL_SYSTEMS=\ ifeq (,$(filter $(ALL_SYSTEMS),$(.VARIABLES))) ifeq ($(OS),Windows_NT) # all windows are Windows_NT... - $(info Detected a Windows system, compiling for 32-bit MinGW SDL2...) - - # go for a 32-bit sdl mingw exe by default - MINGW=1 + ifeq ($(shell uname -s | grep -o MINGW64),MINGW64) # 64-bit MinGW + $(info Detected a Windows system, compiling for 64-bit MinGW SDL2...) + MINGW64=1 + else # 32-bit MinGW + $(info Detected a Windows system, compiling for 32-bit MinGW SDL2...) + MINGW=1 + endif + SDL=1 WINDOWSHELL=1 NOUPX=1 + NOOBJDUMP=1 else # if you on the *nix