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