(OSX PPC) Add PPC detection

This commit is contained in:
twinaphex
2014-04-14 06:21:02 +02:00
parent f1f96010de
commit a5a1a476b1

View File

@@ -10,6 +10,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring win,$(shell uname -a)),)
platform = win
endif
@@ -22,6 +26,10 @@ EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
@@ -36,9 +44,12 @@ ifeq ($(platform), unix)
ZLIB_DIR := ./src/zlib
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC -mmacosx-version-min=10.6
fpic := -fPIC
SHARED := -dynamiclib
ifneq ($(arch),ppc)
fpic += -mmacosx-version-min=10.6
ENDIANNESS_DEFINES = -DLSB_FIRST -DLOCAL_LE=1
endif
CFLAGS += -DHAVE_ASPRINTF
ZLIB_DIR := ./src/zlib
else ifeq ($(platform), qnx)