mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-18 08:55:46 -04:00

* Fix DSI build. Now works correctly on DSi. * Fixed soft reset into boot.nds. Now works on both DSi and flashcarts. Also fixed for theme reset. * Fixed soft reset into GBA mode. Was using libnds's broken swi call. Replaced with modified version that isn't broken. * Fixed warnings generated during compile. * Removed old LD/Specs from arm7 folder. This is needed to allow proper arm7 entry point for TWL_FIRM compatiblity on 3DS. Didn't seem to break DS mode copy so a DSi specific build of arm7 make file is not needed at the moment. * custom banner added via banner.bin and -t ndstool command. * Flashcart build now uses -h 0x200 command for better compatiblity with older homebrew launchers/flashcarts.
85 lines
2.8 KiB
Makefile
85 lines
2.8 KiB
Makefile
#---------------------------------------------------------------------------------
|
|
.SUFFIXES:
|
|
#---------------------------------------------------------------------------------
|
|
ifeq ($(strip $(DEVKITARM)),)
|
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
|
|
endif
|
|
|
|
export TARGET := $(shell basename $(CURDIR))
|
|
export TOPDIR := $(CURDIR)
|
|
|
|
# GMAE_ICON is the image used to create the game icon, leave blank to use default rule
|
|
GAME_ICON := icon.bmp
|
|
|
|
# specify a directory which contains the nitro filesystem
|
|
# this is relative to the Makefile
|
|
NITRO_FILES :=
|
|
|
|
# These set the information text in the nds file
|
|
GAME_TITLE := akmenu-next
|
|
GAME_SUBTITLE1 := nds-bootstrap
|
|
GAME_SUBTITLE2 := github.com/coderkei
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
#.PHONY: checkarm7 checkarm9 checkarm9_ak2 checkarm9_dsi checkarm9_m3 checkarm9_tt clean
|
|
.PHONY: nds-bootloader checkarm7 checkarm9 checkarm9_dsi clean
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
#---------------------------------------------------------------------------------
|
|
all: nds-bootloader checkarm7 checkarm9 checkarm9_dsi \
|
|
$(TARGET).nds $(TARGET).dsi
|
|
|
|
data:
|
|
@mkdir -p data
|
|
|
|
nds-bootloader: data
|
|
$(MAKE) -C nds-bootloader LOADBIN=$(CURDIR)/data/load.bin
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm7:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm9:
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm9_dsi:
|
|
$(MAKE) -C arm9_dsi
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET).nds : $(NITRO_FILES) arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
ndstool -c $(TARGET).nds -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf \
|
|
-h 0x200 -t banner.bin \
|
|
$(_ADDFILES)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET).dsi : $(NITRO_FILES) arm7/$(TARGET).elf arm9_dsi/$(TARGET).elf
|
|
ndstool -c $@ -7 arm7/$(TARGET).elf -9 arm9_dsi/$(TARGET).elf \
|
|
-t banner.bin \
|
|
-g AKGE 01 "AKMENU" -z 80040407 -u 00030004 -a 00000138 -p 0001 \
|
|
$(_ADDFILES)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm7/$(TARGET).elf:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9/$(TARGET).elf: nds-bootloader
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
arm9_dsi/$(TARGET).elf:
|
|
$(MAKE) -C arm9_dsi
|
|
|
|
#---------------------------------------------------------------------------------
|
|
clean:
|
|
$(MAKE) -C arm9 clean
|
|
$(MAKE) -C arm9_dsi clean
|
|
$(MAKE) -C nds-bootloader clean
|
|
$(MAKE) -C arm7 clean
|
|
rm -rf data
|
|
rm -f *.nds *.dsi
|