diff options
author | kwyxz | 2018-01-12 18:25:44 -0800 |
---|---|---|
committer | kwyxz | 2018-01-12 18:25:44 -0800 |
commit | 9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0 (patch) | |
tree | 5f2f197f90abb839d21506edad18dc3be313f743 /Makefile | |
parent | e3dbf33f0a4c7e4256772b7c5da7e909e5424819 (diff) | |
download | snesemu-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.tar.gz snesemu-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.tar.bz2 snesemu-9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0.zip |
Updated Makefile to allow build on Solaris 11
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |