diff --git a/Makefile.libretro b/Makefile.libretro index c0a287b..b0b0726 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -61,11 +61,16 @@ else ifeq ($(platform), xenon) CC = xenon-gcc$(EXE_EXT) AR = xenon-ar$(EXE_EXT) PLATFORM_DEFINES := -D__LIBXENON__ -DALT_RENDER +else ifeq ($(platform), ngc) + TARGET := libretro_ngc.a + CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) + AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) + PLATFORM_DEFINES := -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER else ifeq ($(platform), wii) TARGET := libretro_wii.a CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) - PLATFORM_DEFINES := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER + PLATFORM_DEFINES := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DALT_RENDER else TARGET := retro.dll CC = gcc @@ -182,15 +187,20 @@ else ifeq ($(platform), psl1ght) $(AR) rcs $@ $(LIBRETRO_OBJ) else ifeq ($(platform), xenon) $(AR) rcs $@ $(LIBRETRO_OBJ) +else ifeq ($(platform), ngc) + $(AR) rcs $@ $(LIBRETRO_OBJ) else ifeq ($(platform), wii) $(AR) rcs $@ $(LIBRETRO_OBJ) else $(CC) -o $(TARGET) $(fpic) $(LIBRETRO_OBJ) $(LIBRETRO_LIBS) $(SHARED) endif +clean-objs: + rm -f $(LIBRETRO_OBJ) + clean: rm -f $(LIBRETRO_OBJ) rm -f $(TARGET) -.PHONY: clean +.PHONY: clean clean-objs