mirror of
https://github.com/suloku/savegame-manager.git
synced 2026-03-21 18:04:51 -05:00
- Add "debug" target. It is still somewhat shaky, you need to "make clean" before "make debug", and it does not do much besides writing a few debug lines during the boot sequence. - Add a hard coded version number which is no longer a part of the strings file (and does not need to be translated). - Using a Cyclops iEvolution no longer triggers Slot 2 mode. - Fix doing multiple things in FTP mode without having to restart.
53 lines
1.9 KiB
Makefile
53 lines
1.9 KiB
Makefile
#---------------------------------------------------------------------------------
|
|
.SUFFIXES:
|
|
#---------------------------------------------------------------------------------
|
|
ifeq ($(strip $(DEVKITARM)),)
|
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
|
|
endif
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
export TARGET := savegame_manager
|
|
export TOPDIR := $(CURDIR)
|
|
|
|
|
|
.PHONY: arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
#---------------------------------------------------------------------------------
|
|
all: $(TARGET).nds
|
|
|
|
debug: $(TARGET)-debug.nds
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET).nds : arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
ndstool -c $(TARGET).nds -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm7/$(TARGET).elf:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9/$(TARGET).elf:
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET)-debug.nds : arm7/$(TARGET)-debug.elf arm9/$(TARGET)-debug.elf
|
|
ndstool -c $(TARGET)-debug.nds -7 arm7/$(TARGET)-debug.elf -9 arm9/$(TARGET)-debug.elf
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm7/$(TARGET)-debug.elf:
|
|
$(MAKE) -C arm7 -f Makefile.debug
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9/$(TARGET)-debug.elf:
|
|
$(MAKE) -C arm9 -f Makefile.debug
|
|
|
|
#---------------------------------------------------------------------------------
|
|
clean:
|
|
$(MAKE) -C arm9 clean
|
|
$(MAKE) -C arm7 clean
|
|
rm -f $(TARGET).nds $(TARGET).arm7 $(TARGET).arm9
|
|
rm -f $(TARGET)-debug.nds $(TARGET)-debug.arm7 $(TARGET)-debug.arm9
|