Commit 5bf25822 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Better build compatibility

parent b2b08a87
...@@ -2,13 +2,17 @@ STATIC_LINKING=0 ...@@ -2,13 +2,17 @@ STATIC_LINKING=0
ifeq ($(platform),) ifeq ($(platform),)
platform = unix platform = unix
ifeq ($(shell uname -a),) ifeq ($(shell uname -s),)
platform = win platform = win
else ifneq ($(findstring MINGW,$(shell uname -a)),) else ifneq ($(findstring MINGW,$(shell uname -s)),)
platform = win platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),) else ifneq ($(findstring Darwin,$(shell uname -s)),)
platform = osx platform = osx
else ifneq ($(findstring win,$(shell uname -a)),) arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring win,$(shell uname -s)),)
platform = win platform = win
endif endif
endif endif
...@@ -21,9 +25,9 @@ ifeq ($(shell uname -a),) ...@@ -21,9 +25,9 @@ ifeq ($(shell uname -a),)
else ifneq ($(findstring Darwin,$(shell uname -a)),) else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx system_platform = osx
arch = intel arch = intel
ifeq ($(shell uname -p),powerpc) ifeq ($(shell uname -p),powerpc)
arch = ppc arch = ppc
endif endif
else ifneq ($(findstring MINGW,$(shell uname -a)),) else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win system_platform = win
endif endif
...@@ -41,14 +45,6 @@ LIBS := -lm ...@@ -41,14 +45,6 @@ LIBS := -lm
endif endif
fpic= fpic=
ifeq ($(ARCHFLAGS),)
ifeq ($(archs),ppc)
ARCHFLAGS = -arch ppc -arch ppc64
else
ARCHFLAGS = -arch i386 -arch x86_64
endif
endif
ifeq ($(STATIC_LINKING),1) ifeq ($(STATIC_LINKING),1)
EXT=a EXT=a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment