aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTwinaphex2018-01-13 04:19:46 +0100
committerGitHub2018-01-13 04:19:46 +0100
commite2ad3dfa3500e39f5aab98c6070cf206702d4d40 (patch)
tree5f2f197f90abb839d21506edad18dc3be313f743 /Makefile
parente3dbf33f0a4c7e4256772b7c5da7e909e5424819 (diff)
parent9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0 (diff)
downloadsnes9x2005-e2ad3dfa3500e39f5aab98c6070cf206702d4d40.tar.gz
snes9x2005-e2ad3dfa3500e39f5aab98c6070cf206702d4d40.tar.bz2
snes9x2005-e2ad3dfa3500e39f5aab98c6070cf206702d4d40.zip
Merge pull request #48 from kwyxz/master
Updated Makefile to allow build on Solaris 11
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 64960bb..f5891c4 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,8 @@ ifeq ($(shell uname -p),powerpc)
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
platform = win
+else ifneq ($(findstring SunOS,$(shell uname -a)),)
+ platform = sun
endif
endif
@@ -58,6 +60,12 @@ else ifeq ($(platform), linux-portable)
SHARED := -shared -Wl,--version-script=link.T
CFLAGS += -fno-builtin -fno-exceptions -ffunction-sections
LIBM :=
+else ifeq ($(platform),sun)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -z defs
+ CFLAGS += -fno-builtin -fno-exceptions -ffunction-sections
+ CC = gcc
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
@@ -331,7 +339,6 @@ endif
%.o: %.c
$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
-
ifeq ($(platform), theos_ios)
COMMON_FLAGS := -DIOS $(COMMON_DEFINES) $(INCFLAGS) -I$(THEOS_INCLUDE_PATH) -Wno-error
$(LIBRARY_NAME)_CFLAGS += $(COMMON_FLAGS) $(CFLAGS)