mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 01:54:32 -05:00
26 lines
799 B
Plaintext
26 lines
799 B
Plaintext
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
|
|
|
|
MACHDEP = -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
|
|
|
include $(DEVKITPPC)/base_rules
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.dol: %.elf
|
|
@echo output ... $(notdir $@)
|
|
@elf2dol $< $@
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.tpl : %.scf
|
|
@echo $(notdir $<)
|
|
@gxtexconv -s $< -d $(DEPSDIR)/$*.d -o $@
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.elf:
|
|
@echo linking ... $(notdir $@)
|
|
@$(LD) $^ $(LDFLAGS) $(LIBPATHS) $(LIBS) -o $@
|