libretro, build changes for ngc/wii/wiiu
authorkub <derkub@gmail.com>
Tue, 27 Apr 2021 19:51:44 +0000 (21:51 +0200)
committerkub <derkub@gmail.com>
Tue, 27 Apr 2021 19:51:44 +0000 (21:51 +0200)
Makefile.libretro

index c989839..d6a0d03 100644 (file)
@@ -253,7 +253,7 @@ else ifeq ($(platform), ngc)
        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_DOL -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
+       CFLAGS += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
        STATIC_LINKING = 1
        NO_MMAP = 1
 
@@ -262,7 +262,7 @@ else ifeq ($(platform), wii)
        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 -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
+       CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
        STATIC_LINKING = 1
        NO_MMAP = 1
 
@@ -272,10 +272,12 @@ else ifeq ($(platform), wiiu)
        CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
        CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
        AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
-       CFLAGS += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__POWERPC__ -D__ppc__ -DMSB_FIRST -DWORDS_BIGENDIAN=1
-       CFLAGS += -I./deps/include/ -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
+       CFLAGS += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
        STATIC_LINKING = 1
        NO_MMAP = 1
+       # Wii U has memory mapped in a way not suitable for DRC
+       use_sh2drc = 0
+       use_svpdrc = 0
 
 # Nintendo Switch (libtransistor)
 else ifeq ($(platform), switch)