Add support for 64 bit mingw in the makefiles
By setting an overridable variable in the main makefile, we avoid having to move the default -DUNIX64 into each of the other unix platform makefiles, but still allowing the mingw platform to override it.
This commit is contained in:
parent
41a251630d
commit
ba38dc77a5
6
Makefile
6
Makefile
@ -29,11 +29,11 @@ endif
|
|||||||
ifeq ($(ENABLE64BIT), Yes)
|
ifeq ($(ENABLE64BIT), Yes)
|
||||||
CFLAGS += -m64
|
CFLAGS += -m64
|
||||||
LDFLAGS += -m64
|
LDFLAGS += -m64
|
||||||
ASMFLAGS += -DUNIX64
|
ASMFLAGS_PLATFORM = -DUNIX64
|
||||||
else
|
else
|
||||||
CFLAGS += -m32
|
CFLAGS += -m32
|
||||||
LDFLAGS += -m32
|
LDFLAGS += -m32
|
||||||
ASMFLAGS += -DX86_32
|
ASMFLAGS_PLATFORM = -DX86_32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include build/platform-$(UNAME).mk
|
include build/platform-$(UNAME).mk
|
||||||
@ -44,7 +44,7 @@ endif
|
|||||||
|
|
||||||
CFLAGS += -DNO_DYNAMIC_VP -DHAVE_CACHE_LINE_ALIGN
|
CFLAGS += -DNO_DYNAMIC_VP -DHAVE_CACHE_LINE_ALIGN
|
||||||
LDFLAGS +=
|
LDFLAGS +=
|
||||||
ASMFLAGS += -DNO_DYNAMIC_VP
|
ASMFLAGS += $(ASMFLAGS_PLATFORM) -DNO_DYNAMIC_VP
|
||||||
|
|
||||||
|
|
||||||
#### No user-serviceable parts below this line
|
#### No user-serviceable parts below this line
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
ASM = nasm
|
ASM = nasm
|
||||||
CFLAGS += -DWIN32 -D__NO_CTYPE
|
CFLAGS += -D__NO_CTYPE
|
||||||
LDFLAGS +=
|
LDFLAGS +=
|
||||||
|
ifeq ($(ENABLE64BIT), Yes)
|
||||||
|
ASMFLAGS += -f win64
|
||||||
|
ASMFLAGS_PLATFORM = -DWIN64
|
||||||
|
CFLAGS += -DWIN64
|
||||||
|
CXX = x86_64-w64-mingw32-g++
|
||||||
|
AR = x86_64-w64-mingw32-ar
|
||||||
|
else
|
||||||
ASMFLAGS += -f win32 -DPREFIX
|
ASMFLAGS += -f win32 -DPREFIX
|
||||||
|
CFLAGS += -DWIN32
|
||||||
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user