(OSX PPC) Add PPC detection

This commit is contained in:
twinaphex 2014-04-14 06:37:52 +02:00
parent 4f0d5131f1
commit 9730ca3bdb
1 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,10 @@ ifeq ($(platform),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
platform = win
else ifneq ($(findstring win,$(shell uname -a)),)
@ -21,8 +25,14 @@ ifeq ($(platform), unix)
SHARED := -shared -Wl,--version-script=link.T
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC -mmacosx-version-min=10.6
fpic := -fPIC
SHARED := -dynamiclib
ifeq ($(arch),ppc)
CXXFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__
else
fpic += -mmacosx-version-min=10.6
endif
else ifeq ($(platform), ios)
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC