diff --git a/Makefile.libretro b/Makefile.libretro index 9b7978d..a794480 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -75,6 +75,31 @@ else ifeq ($(platform), wii) STATIC_LINKING=1 STATIC_LINKING_LINK=1 +# Nintendo WiiU +else ifeq ($(platform), wiiu) + TARGET := $(TARGET_NAME)_libretro_wiiu.a + CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) + CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT) + AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) + BAKE_IN_ZLIB=1 + CFLAGS += -DSDL_BYTEORDER=SDL_BIG_ENDIAN -DMSB_FIRST -DBYTE_ORDER=BIG_ENDIAN -DBYTE_ORDER=BIG_ENDIAN \ + -DHAVE_ASPRINTF -I$(DEVKITPRO)/libogc/include \ + -D__powerpc__ -D__POWERPC__ -DGEKKO -DWIIU -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST + SHARED := -lm -lc + PLATFLAGS := -DALIGN_DWORD + WANT_ZLIB=1 + STATIC_LINKING=1 + STATIC_LINKING_LINK=1 + +# Nintendo Switch (libtransistor) +else ifeq ($(platform), switch) + EXT=a + TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT) + include $(LIBTRANSISTOR_HOME)/libtransistor.mk + WANT_ZLIB=1 + PLATFLAGS := -DALIGN_DWORD + STATIC_LINKING=1 + else ifeq ($(platform), ps3) TARGET := $(TARGET_NAME)_libretro_ps3.a CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe