Made the game even easier to compile in MXE.

This commit is contained in:
Colton Rushton 2020-05-19 10:38:08 -03:00
parent 2170a4cee9
commit eaf1f51b0d
1 changed files with 11 additions and 1 deletions

View File

@ -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)