(OSX) Add PPC detection

This commit is contained in:
twinaphex 2014-04-14 05:47:00 +02:00
parent ece1907480
commit 4854241606

View File

@ -17,6 +17,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
@ -29,6 +33,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
@ -43,9 +51,12 @@ ifeq ($(platform), unix)
PLATFORM_DEFINES := -DHAVE_ZLIB
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC -mmacosx-version-min=10.6
fpic := -fPIC
SHARED := -dynamiclib -lz
ifneq ($(arch),ppc)
fpic += -mmacosx-version-min=10.6
ENDIANNESS_DEFINES := -DLSB_FIRST
endif
PLATFORM_DEFINES := -DHAVE_ZLIB
else ifeq ($(platform), ios)
TARGET := $(TARGET_NAME)_libretro_ios.dylib