From 41828987f27ff28112e51367a018fdd913cf48e4 Mon Sep 17 00:00:00 2001 From: Colton Rushton Date: Tue, 19 May 2020 10:38:08 -0300 Subject: [PATCH] Made the game even easier to compile in MXE. --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 598320ef..361e8261 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,17 @@ else TARGET_ARCH ?= native endif -TARGET_BITS ?= 0 +ifeq ($(WINDOWS_BUILD),1) + ifeq ($(CROSS),i686-w64-mingw32.static-) + TARGET_BITS = 32 + else ifeq ($(CROSS),x86_64-w64-mingw32.static-) + TARGET_BITS = 64 + else + TARGET_BITS ?= 0 + endif +else + TARGET_BITS ?= 0 +endif ifneq ($(TARGET_BITS),0) BITS := -m$(TARGET_BITS)