From bd0bfbe48896aa1187d6c8f14765b1b307429cac Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 23 Aug 2012 01:37:24 +0200 Subject: [PATCH 1/2] Add clean-objs target --- Makefile.libretro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index c0a287b..86c41c6 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -188,9 +188,12 @@ 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 From 3f909617b07df657848b3726bca8244fb1057c8e Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 1 Sep 2012 03:12:03 +0200 Subject: [PATCH 2/2] Adds libretro target 'ngc' --- Makefile.libretro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 86c41c6..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,6 +187,8 @@ 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