summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2010-01-19 22:09:45 +0000
committer Couriersud <couriersud@users.noreply.github.com>2010-01-19 22:09:45 +0000
commit0328f34acbf81861e948bb228ae885ce097d04f8 (patch)
tree83c6c7e40a95035259d4dd0793ac10d52764de96 /src/osd
parent98b68249824536af9bd9f9c01513bae0a7781d3f (diff)
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.
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/sdl/sdl.mak6
-rw-r--r--src/osd/windows/windows.mak4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak
index 0d2b325ef3c..81d14693ab8 100644
--- a/src/osd/sdl/sdl.mak
+++ b/src/osd/sdl/sdl.mak
@@ -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
diff --git a/src/osd/windows/windows.mak b/src/osd/windows/windows.mak
index 21d6efeb9a3..8c24fd291d6 100644
--- a/src/osd/windows/windows.mak
+++ b/src/osd/windows/windows.mak
@@ -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