2020-04-29 17:53:53 +02:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
.SUFFIXES:
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ifeq ($(strip $(DEVKITPRO)),)
|
|
|
|
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitPro")
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(DEVKITPPC)),)
|
|
|
|
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>/devkitPro/devkitPPC")
|
|
|
|
endif
|
|
|
|
|
2020-06-12 13:55:34 +02:00
|
|
|
include $(DEVKITPRO)/wut/share/wut_rules
|
2020-04-29 17:53:53 +02:00
|
|
|
|
|
|
|
WUPS_ROOT ?= $(DEVKITPRO)/wups
|
|
|
|
|
2020-06-12 13:55:34 +02:00
|
|
|
WUPSSPECS := -T$(WUPS_ROOT)/share/wups.ld -specs=$(WUPS_ROOT)/share/wups.specs
|
2020-04-29 17:53:53 +02:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
%.wps: %.elf
|
|
|
|
@cp $< $*.strip.elf
|
|
|
|
@$(STRIP) -g $*.strip.elf
|
|
|
|
@elf2rpl $*.strip.elf $@
|
2020-08-29 19:42:49 +02:00
|
|
|
@echo 'PL' | dd of=$@ bs=1 seek=9 count=2 conv=notrunc status=none
|
2020-04-29 17:53:53 +02:00
|
|
|
@rm $*.strip.elf
|
2020-06-12 13:55:34 +02:00
|
|
|
@echo built ... $(notdir $@)
|