2020-12-24 12:27:43 -05:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
.SUFFIXES:
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
ifeq ($(strip $(DEVKITARM)),)
|
|
|
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
|
2020-12-24 13:05:19 -05:00
|
|
|
export TARGET := A5200DS
|
2020-12-24 12:27:43 -05:00
|
|
|
export TOPDIR := $(CURDIR)
|
|
|
|
|
2024-01-08 07:21:50 -05:00
|
|
|
VERSION=3.6
|
2021-11-30 10:49:19 -05:00
|
|
|
|
2020-12-25 10:56:33 -05:00
|
|
|
ICON := -b $(CURDIR)/logo.bmp "A5200DS $(VERSION);wavemotion-dave;http://https://github.com/wavemotion-dave/A5200DS"
|
2020-12-24 12:27:43 -05:00
|
|
|
|
|
|
|
.PHONY: arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# main targets
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
all: $(TARGET).nds
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
$(TARGET).nds : arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
|
|
ndstool -c $(TARGET).nds -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf $(ICON)
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
arm7/$(TARGET).elf:
|
|
|
|
$(MAKE) -C arm7
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
arm9/$(TARGET).elf:
|
|
|
|
$(MAKE) -C arm9
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
clean:
|
|
|
|
$(MAKE) -C arm9 clean
|
|
|
|
$(MAKE) -C arm7 clean
|
|
|
|
rm -f $(TARGET).nds $(TARGET).arm7 $(TARGET).arm9
|