mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
Autodetection of PTR64 can be inhibited now by specifying PTR64=0.
On mixed 32bit/64bit targets identifying themselves as 64bit this can be used to build a 32bit executable.
This commit is contained in:
parent
98b6824982
commit
0328f34acb
4
makefile
4
makefile
@ -285,7 +285,7 @@ endif
|
||||
endif
|
||||
|
||||
# 64-bit builds get a '64' suffix
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
SUFFIX64 = 64
|
||||
endif
|
||||
|
||||
@ -345,7 +345,7 @@ DEFS += -DLSB_FIRST
|
||||
endif
|
||||
|
||||
# define PTR64 if we are a 64-bit target
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
DEFS += -DPTR64
|
||||
endif
|
||||
|
||||
|
@ -44,7 +44,7 @@ DRCDEPS = \
|
||||
# fixme - need to make this work for other target architectures (PPC)
|
||||
|
||||
ifndef FORCE_DRC_C_BACKEND
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
|
||||
DRCOBJ += \
|
||||
$(CPUOBJ)/drcbex64.o \
|
||||
|
@ -172,7 +172,7 @@ ifdef BIGENDIAN
|
||||
ifdef SYMBOLS
|
||||
CCOMFLAGS += -mlong-branch
|
||||
endif # SYMBOLS
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
CCOMFLAGS += -arch ppc64
|
||||
LDFLAGS += -arch ppc64
|
||||
else
|
||||
@ -180,7 +180,7 @@ CCOMFLAGS += -arch ppc
|
||||
LDFLAGS += -arch ppc
|
||||
endif
|
||||
else # BIGENDIAN
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
CCOMFLAGS += -arch x86_64
|
||||
LDFLAGS += -arch x86_64
|
||||
else
|
||||
@ -324,7 +324,7 @@ SUPPORTSM32M64 = 1
|
||||
endif
|
||||
|
||||
ifeq ($(SUPPORTSM32M64),1)
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
CCOMFLAGS += -m64
|
||||
LDFLAGS += -m64
|
||||
else
|
||||
|
@ -136,7 +136,7 @@ AR += /LTCG
|
||||
endif
|
||||
|
||||
# disable warnings and link against bufferoverflowu for 64-bit targets
|
||||
ifdef PTR64
|
||||
ifeq ($(PTR64),1)
|
||||
CCOMFLAGS += /wd4267
|
||||
LIBS += -lbufferoverflowu
|
||||
endif
|
||||
@ -221,7 +221,7 @@ endif
|
||||
CCOMFLAGS += -include $(WINSRC)/winprefix.h
|
||||
|
||||
# for 32-bit apps, add unicows for Unicode support on Win9x
|
||||
ifndef PTR64
|
||||
ifneq ($(PTR64),1)
|
||||
LIBS += -lunicows
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user