Merge pull request #5 from libretro/master

Adds libretro target 'ngc'
This commit is contained in:
ekeeke 2012-09-01 07:25:52 -07:00
commit cc26641278

View File

@ -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