From 9082ec473eaa1d49edaf2deacbc3f892b8e5e3c0 Mon Sep 17 00:00:00 2001 From: kwyxz Date: Fri, 12 Jan 2018 18:25:44 -0800 Subject: Updated Makefile to allow build on Solaris 11 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3