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