aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwyxz2018-01-12 18:25:44 -0800
committerkwyxz2018-01-12 18:25:44 -0800
commit9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0 (patch)
tree5f2f197f90abb839d21506edad18dc3be313f743
parente3dbf33f0a4c7e4256772b7c5da7e909e5424819 (diff)
downloadsnes9x2005-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.tar.gz
snes9x2005-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.tar.bz2
snes9x2005-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.zip
Updated Makefile to allow build on Solaris 11
-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)