aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-07-05 16:08:59 +0000
committerMax Horn2010-07-05 16:08:59 +0000
commitf39f7f3dedbea6543337526607b0b1a477c2e0c3 (patch)
tree0c5a224484f5c6df94535dc2173a5e99226a3aee
parent00dfb4db2968d46ca8052f2020143254c8926805 (diff)
downloadscummvm-rg350-f39f7f3dedbea6543337526607b0b1a477c2e0c3.tar.gz
scummvm-rg350-f39f7f3dedbea6543337526607b0b1a477c2e0c3.tar.bz2
scummvm-rg350-f39f7f3dedbea6543337526607b0b1a477c2e0c3.zip
DS: Augment 'clean' target, simplify bin->elf conversion rule
svn-id: r50686
-rw-r--r--backends/platform/ds/ds.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/backends/platform/ds/ds.mk b/backends/platform/ds/ds.mk
index 9df0d2ba0d..d7c7defa3d 100644
--- a/backends/platform/ds/ds.mk
+++ b/backends/platform/ds/ds.mk
@@ -92,9 +92,17 @@ OPT_SIZE := -Os -mthumb
all: scummvm.nds scummvm.ds.gba
+clean: dsclean
+
+dsclean:
+ $(RM) scummvm.nds scummvm.ds.gba
+
+.PHONY: dsclean
+
+# TODO: Add a 'dsdist' target ?
+
%.bin: %.elf
- $(OBJCOPY) -S $< $(<F)-stripped.elf
- $(OBJCOPY) -O binary $(<F)-stripped.elf $@
+ $(OBJCOPY) -S -O binary $< $@
%.nds: %.bin $(ndsdir)/arm7/arm7.bin
ndstool -c $@ -9 $< -7 $(ndsdir)/arm7/arm7.bin -b $(srcdir)/$(ndsdir)/$(LOGO) "$(@F);ScummVM $(VERSION);DS Port"