aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds
diff options
context:
space:
mode:
authorMax Horn2010-07-07 23:24:08 +0000
committerMax Horn2010-07-07 23:24:08 +0000
commitf6afba1f19b3ebf6242940f1f27c063cd34f4995 (patch)
tree6efc8a8394f176146c5f308e02a0a55ab401f283 /backends/platform/ds
parent6aa53ba3b8d7bd207aafd1ab4fa2c68b5f3e50b3 (diff)
downloadscummvm-rg350-f6afba1f19b3ebf6242940f1f27c063cd34f4995.tar.gz
scummvm-rg350-f6afba1f19b3ebf6242940f1f27c063cd34f4995.tar.bz2
scummvm-rg350-f6afba1f19b3ebf6242940f1f27c063cd34f4995.zip
DS: Split buildrule for scummvm.nds and scummvm.ds.gba
This parallels what I did in ds.mk svn-id: r50744
Diffstat (limited to 'backends/platform/ds')
-rw-r--r--backends/platform/ds/arm9/makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/platform/ds/arm9/makefile b/backends/platform/ds/arm9/makefile
index beb55586ac..079e23aec0 100644
--- a/backends/platform/ds/arm9/makefile
+++ b/backends/platform/ds/arm9/makefile
@@ -345,7 +345,7 @@ MODULE_DIRS += .
ndsall:
@[ -d $(BUILD) ] || mkdir -p $(BUILD)
- make -C ./$(BUILD) -f ../makefile scummvm.nds
+ make -C ./$(BUILD) -f ../makefile scummvm.nds scummvm.ds.gba
include $(srcdir)/Makefile.common
@@ -400,10 +400,11 @@ endef
#---------------------------------------------------------------------------------
%.nds: %.bin
- ndstool -c $@ -9 scummvm.bin $(ARM7BIN) -b ../../$(LOGO) "$(shell basename $@);ScummVM $(VERSION);DS Port"
- dsbuild $@ -l ../ndsloader.bin
+ ndstool -c $@ -9 $< $(ARM7BIN) -b ../../$(LOGO) "$(@F);ScummVM $(VERSION);DS Port"
- padbin 16 $(basename $@).ds.gba
+%.ds.gba: %.nds
+ dsbuild $< -o $@ -l $(portdir)/ndsloader.bin
+ padbin 16 $@
#---------------------------------------------------------------------------------
%.bin: %.elf