diff --git a/dkarm-eabi/rules/ds_rules b/dkarm-eabi/rules/ds_rules index c2b5ae8..64e6915 100644 --- a/dkarm-eabi/rules/ds_rules +++ b/dkarm-eabi/rules/ds_rules @@ -6,14 +6,25 @@ include $(DEVKITARM)/base_rules LIBNDS := $(DEVKITPRO)/libnds -#--------------------------------------------------------------------------------- -%.ds.gba: %.nds - @dsbuild $< - @echo built ... $(notdir $@) +ifeq ($(strip $(GAME_TITLE)),) +GAME_TITLE := $(notdir $(OUTPUT)) +endif + +ifeq ($(strip $(GAME_SUBTITLE1)),) +GAME_SUBTITLE1 := www.devkitpro.org +endif + +ifeq ($(strip $(GAME_SUBTITLE2)),) +GAME_SUBTITLE2 := www.drunkencoders.com +endif + +ifeq ($(strip $(GAME_ICON)),) +GAME_ICON := $(DEVKITPRO)/libnds/icon.bmp +endif #--------------------------------------------------------------------------------- %.nds: %.arm9 - @ndstool -c $@ -9 $< + ndstool -c $@ -9 $< -b $(GAME_ICON) "$(GAME_TITLE);$(GAME_SUBTITLE1);$(GAME_SUBTITLE2)" @echo built ... $(notdir $@) #---------------------------------------------------------------------------------