From 59fe551f26fb4718abe3a17b86d4ad40c9510650 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Mon, 22 Jan 2018 16:58:06 +0100 Subject: [PATCH] Makefile: Add Switch target. --- libretro/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro/Makefile b/libretro/Makefile index 41b77e4d..17a5d840 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -74,6 +74,12 @@ else ifeq ($(platform), linux-portable) fpic := -fPIC -nostdlib SHARED := -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T LIBM := +# Nintendo Switch (libtransistor) +else ifeq ($(platform), switch) + TARGET := $(TARGET_NAME)_libretro_$(platform).a + include $(LIBTRANSISTOR_HOME)/libtransistor.mk + CFLAGS += -Wl,-q -Wall -O3 -fno-short-enums -fno-optimize-sibling-calls + STATIC_LINKING=1 else ifneq (,$(findstring osx,$(platform))) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC