savegame-manager/Makefile
msiewert76 8bd9035394 - Update instruction file again, I'd say it is no longer a WIP now.
- 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.
2011-06-11 16:29:15 +00:00

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