update devkitPPC rulesets

This commit is contained in:
Dave Murphy 2008-02-17 08:33:27 +00:00
parent 63952c3991
commit e72b5b62ee
3 changed files with 21 additions and 1 deletions

View File

@ -8,9 +8,9 @@ export PATH := $(DEVKITPPC)/bin:$(PATH)
#---------------------------------------------------------------------------------
PREFIX := powerpc-gekko-
export AS := $(PREFIX)as
export CC := $(PREFIX)gcc
export CXX := $(PREFIX)g++
export AS := $(PREFIX)as
export AR := $(PREFIX)ar
export OBJCOPY := $(PREFIX)objcopy

View File

@ -2,6 +2,9 @@ ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPro/devkitPPC)
endif
export LIBOGC_INC := $(DEVKITPRO)/libogc/include
export LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/cube
include $(DEVKITPPC)/base_rules
%.dol: %.elf

17
dkppc/rules/wii_rules Normal file
View File

@ -0,0 +1,17 @@
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPro/devkitPPC)
endif
export LIBOGC_INC := $(DEVKITPRO)/libogc/include
export LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
include $(DEVKITPPC)/base_rules
%.dol: %.elf
@echo output ... $(notdir $@)
@$(OBJCOPY) -O binary $< $@
#---------------------------------------------------------------------------------
%.elf:
@echo linking ... $(notdir $@)
@$(LD) $^ $(LDFLAGS) $(LIBPATHS) $(LIBS) -o $@