mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-18 17:05:48 -04:00

- UTF8-ify where possible - Remove custom linkerscript - Update Makefiles - devkitPro/nds-examples@6afa09b205 - Comment out akloader binaries - This will be reworked soon™️ - Eradicate sdidentify - AKRPG specific - Eradicate libelm - Eradicate save64m - Eradicate file operations - Eradicate libio* - Eradicate crtsmall - Fix paths for new root drive naming in latest libfat - dsrom: fix type cast issue in homebrew check - MAX_FILENAME_LENGTH -> PATH_MAX - adapt directory listing operations to new dkP way - timer: unstaticify _factor - Remove all flashcart-specific bits - fix type of cPopMenu::itemBelowPoint - gbaloader: use updated vramSetPrimaryBanks function - Move arm9-specific headers to arm9
59 lines
1.9 KiB
Makefile
59 lines
1.9 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 :=
|
|
|
|
# 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 := acekard
|
|
GAME_SUBTITLE1 := Real Play Gear
|
|
GAME_SUBTITLE2 := www.acekard.com
|
|
|
|
include $(DEVKITARM)/ds_rules
|
|
|
|
.PHONY: checkarm7 checkarm9 clean
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
#---------------------------------------------------------------------------------
|
|
all: checkarm7 checkarm9 $(TARGET).nds
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm7:
|
|
$(MAKE) -C arm7
|
|
|
|
#---------------------------------------------------------------------------------
|
|
checkarm9:
|
|
$(MAKE) -C arm9
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(TARGET).nds : $(NITRO_FILES) arm7/$(TARGET).elf arm9/$(TARGET).elf
|
|
ndstool -c $(TARGET).nds -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf \
|
|
-b $(GAME_ICON) "$(GAME_TITLE);$(GAME_SUBTITLE1);$(GAME_SUBTITLE2)" \
|
|
$(_ADDFILES)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
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
|