From e1bd85caa625c3ff38ae425ff41ff81aae04b796 Mon Sep 17 00:00:00 2001 From: radius Date: Sat, 3 Feb 2018 20:53:41 -0500 Subject: [PATCH] add WiiU target --- libretro/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libretro/Makefile b/libretro/Makefile index f421aae..ec3bb12 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -86,6 +86,14 @@ else ifeq ($(platform), switch) include $(LIBTRANSISTOR_HOME)/libtransistor.mk CFLAGS += -Wl,-q -Wall -O3 -fno-short-enums -fno-optimize-sibling-calls STATIC_LINKING=1 +# Nintendo WiiU +else ifeq ($(platform), wiiu) + TARGET := $(TARGET_NAME)_libretro_$(platform).a + CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) + AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) + CFLAGS += -DGEKKO -DHW_RVL -DWIIU -mwup -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST -I$(DEVKITPRO)/libogc/include + CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int + STATIC_LINKING = 1 else ifneq (,$(findstring osx,$(platform))) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC