fwTool/Makefile
Nuck-TH 83c392a202 Implemented safety(sanity) checks in restoreNAND():
*Check for match of file and NAND sizes
    *Check for precence of MBR in file(this means that file is not encrypted)
Added user-friendly message for successful finish of restoration.
Edited messages a bit in restore function.
Fixed building on last devkitARM(nand_WriteSectors const buffer in declaration).
Changed version to 1.6.1 to differ from base.
2017-08-10 00:10:52 +07:00

39 lines
1.3 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 := fwTool
export TOPDIR := $(CURDIR)
export VERSION := 1.6.1
.PHONY: arm7/$(TARGET).elf arm9/$(TARGET).elf
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
all: $(TARGET).nds
#---------------------------------------------------------------------------------
$(TARGET).nds : arm7/$(TARGET).elf arm9/$(TARGET).elf
ndstool -c $@ -b fwTool.bmp "Nintendo DS firmware tool;version ${VERSION}" -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf
#---------------------------------------------------------------------------------
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