ba38dc77a5
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.
15 lines
255 B
Makefile
15 lines
255 B
Makefile
ASM = nasm
|
|
CFLAGS += -D__NO_CTYPE
|
|
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
|
|
CFLAGS += -DWIN32
|
|
endif
|
|
|