mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +00:00
added mingw64 (msys2) platform support
This commit is contained in:
parent
4e029b1f6b
commit
31fea24321
1 changed files with 15 additions and 8 deletions
23
Makefile
23
Makefile
|
@ -61,6 +61,13 @@ PLATFORM=$(COMPILE_PLATFORM)
|
||||||
endif
|
endif
|
||||||
export PLATFORM
|
export PLATFORM
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM),mingw32)
|
||||||
|
MINGW=1
|
||||||
|
endif
|
||||||
|
ifeq ($(PLATFORM),mingw64)
|
||||||
|
MINGW=1
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(COMPILE_ARCH),i86pc)
|
ifeq ($(COMPILE_ARCH),i86pc)
|
||||||
COMPILE_ARCH=x86
|
COMPILE_ARCH=x86
|
||||||
endif
|
endif
|
||||||
|
@ -164,7 +171,7 @@ USE_CURL=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef USE_CURL_DLOPEN
|
ifndef USE_CURL_DLOPEN
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
USE_CURL_DLOPEN=0
|
USE_CURL_DLOPEN=0
|
||||||
else
|
else
|
||||||
USE_CURL_DLOPEN=1
|
USE_CURL_DLOPEN=1
|
||||||
|
@ -508,7 +515,7 @@ else # ifeq darwin
|
||||||
# SETUP AND BUILD -- MINGW32
|
# SETUP AND BUILD -- MINGW32
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
|
|
||||||
ifeq ($(CROSS_COMPILING),1)
|
ifeq ($(CROSS_COMPILING),1)
|
||||||
# If CC is already set to something generic, we probably want to use
|
# If CC is already set to something generic, we probably want to use
|
||||||
|
@ -656,7 +663,7 @@ ifeq ($(PLATFORM),mingw32)
|
||||||
SDLDLL=SDL2.dll
|
SDLDLL=SDL2.dll
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else # ifeq mingw32
|
else # ifdef MINGW
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# SETUP AND BUILD -- FREEBSD
|
# SETUP AND BUILD -- FREEBSD
|
||||||
|
@ -909,7 +916,7 @@ else # ifeq sunos
|
||||||
|
|
||||||
endif #Linux
|
endif #Linux
|
||||||
endif #darwin
|
endif #darwin
|
||||||
endif #mingw32
|
endif #MINGW
|
||||||
endif #FreeBSD
|
endif #FreeBSD
|
||||||
endif #OpenBSD
|
endif #OpenBSD
|
||||||
endif #NetBSD
|
endif #NetBSD
|
||||||
|
@ -1649,7 +1656,7 @@ Q3OBJ = \
|
||||||
$(B)/client/con_log.o \
|
$(B)/client/con_log.o \
|
||||||
$(B)/client/sys_main.o
|
$(B)/client/sys_main.o
|
||||||
|
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
Q3OBJ += \
|
Q3OBJ += \
|
||||||
$(B)/client/con_passive.o
|
$(B)/client/con_passive.o
|
||||||
else
|
else
|
||||||
|
@ -2093,7 +2100,7 @@ ifeq ($(HAVE_VM_COMPILED),true)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
Q3OBJ += \
|
Q3OBJ += \
|
||||||
$(B)/client/win_resource.o \
|
$(B)/client/win_resource.o \
|
||||||
$(B)/client/sys_win32.o
|
$(B)/client/sys_win32.o
|
||||||
|
@ -2261,7 +2268,7 @@ ifeq ($(HAVE_VM_COMPILED),true)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
Q3DOBJ += \
|
Q3DOBJ += \
|
||||||
$(B)/ded/win_resource.o \
|
$(B)/ded/win_resource.o \
|
||||||
$(B)/ded/sys_win32.o \
|
$(B)/ded/sys_win32.o \
|
||||||
|
@ -2877,7 +2884,7 @@ distclean: clean toolsclean
|
||||||
@rm -rf $(BUILD_DIR)
|
@rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
installer: release
|
installer: release
|
||||||
ifeq ($(PLATFORM),mingw32)
|
ifdef MINGW
|
||||||
@$(MAKE) VERSION=$(VERSION) -C $(NSISDIR) V=$(V) \
|
@$(MAKE) VERSION=$(VERSION) -C $(NSISDIR) V=$(V) \
|
||||||
SDLDLL=$(SDLDLL) \
|
SDLDLL=$(SDLDLL) \
|
||||||
USE_RENDERER_DLOPEN=$(USE_RENDERER_DLOPEN) \
|
USE_RENDERER_DLOPEN=$(USE_RENDERER_DLOPEN) \
|
||||||
|
|
Loading…
Reference in a new issue