2018-02-04 10:14:45 +01:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# Clear the implicit built in rules
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
.SUFFIXES:
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
ifeq ($(strip $(DEVKITPPC)),)
|
|
|
|
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
|
|
|
|
endif
|
|
|
|
ifeq ($(strip $(DEVKITPRO)),)
|
|
|
|
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
|
|
|
|
endif
|
|
|
|
|
|
|
|
WUPSDIR := $(DEVKITPRO)/wups
|
|
|
|
|
|
|
|
# Rule to install wups.
|
|
|
|
PHONY += install
|
|
|
|
install : wups.ld wups_elf.ld
|
|
|
|
$(addprefix $Qrm -rf ,$(wildcard $(WUPSDIR)))
|
|
|
|
$Qmkdir $(WUPSDIR)
|
|
|
|
$Qcp -r wups_include $(WUPSDIR)/include
|
|
|
|
$Qcp -r wups.ld $(WUPSDIR)
|
|
|
|
$Qcp -r wups_elf.ld $(WUPSDIR)
|
|
|
|
|
2018-02-04 10:29:04 +01:00
|
|
|
# Rule to install wups.
|
2018-02-04 10:14:45 +01:00
|
|
|
PHONY += uninstall
|
|
|
|
uninstall :
|
|
|
|
$(addprefix $Qrm -rf ,$(wildcard $(WUPSDIR)))
|