aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9
diff options
context:
space:
mode:
authorRobin Watts2008-06-01 18:09:19 +0000
committerRobin Watts2008-06-01 18:09:19 +0000
commitdee529f30cb8db234c78504b3a4f1547be6b0a96 (patch)
treea5852639e042b8b741d1741b359f94adf9bb60d1 /backends/platform/ds/arm9
parentcc2b35ee1f5e1f60d3ed6e619f05c7884d947b95 (diff)
downloadscummvm-rg350-dee529f30cb8db234c78504b3a4f1547be6b0a96.tar.gz
scummvm-rg350-dee529f30cb8db234c78504b3a4f1547be6b0a96.tar.bz2
scummvm-rg350-dee529f30cb8db234c78504b3a4f1547be6b0a96.zip
Tweaks to DS makefiles.
1) It wouldn't build at all for me, because source/fat had been missed off the INCLUDES line. 2) Stray whitespace removed (to stop emacs warning on saving) 3) DS_BUILD flag selection reworked slightly. Now do: make all SCUMM_BUILD=x (where x is a,b,c,d,e,f,g) and it'll select that version and build it. If no x is supplied or x is not a-g, then version a will be built. 4) New allbuilds target. In backends/platform/ds, do: make allbuilds and versions A-G are built in turn (version G does not complete currently due to lack of logo g). This uses a 'semiclean' target in each makefile to clean just the files that change between versions. svn-id: r32470
Diffstat (limited to 'backends/platform/ds/arm9')
-rw-r--r--backends/platform/ds/arm9/makefile71
1 files changed, 32 insertions, 39 deletions
diff --git a/backends/platform/ds/arm9/makefile b/backends/platform/ds/arm9/makefile
index 03fea92dc1..1a4d61113e 100644
--- a/backends/platform/ds/arm9/makefile
+++ b/backends/platform/ds/arm9/makefile
@@ -5,46 +5,35 @@ DEPDIR := .deps
libndsdir = $(DEVKITPRO)/libnds
#libndsdir = /home/neil/devkitpror21/libnds
-# Select the build you want by uncommenting one of the following lines:
-
-
-
-ifeq ($(SCUMM_BUILD),a)
- DS_BUILD_A = 1
-endif
-
-ifeq ($(SCUMM_BUILD),b)
- DS_BUILD_B = 1
-endif
-
-ifeq ($(SCUMM_BUILD),c)
- DS_BUILD_C = 1
-endif
-
-ifeq ($(SCUMM_BUILD),d)
- DS_BUILD_D = 1
-endif
-
-ifeq ($(SCUMM_BUILD),e)
- DS_BUILD_E = 1
-endif
-
-ifeq ($(SCUMM_BUILD),f)
- DS_BUILD_F = 1
-endif
+# Select the build by setting SCUMM_BUILD to a,b,c,d,e,f or g.
+# Anything else gets build a.
ifeq ($(SCUMM_BUILD),g)
DS_BUILD_G = 1
+else
+ ifeq ($(SCUMM_BUILD),f)
+ DS_BUILD_F = 1
+ else
+ ifeq ($(SCUMM_BUILD),e)
+ DS_BUILD_E = 1
+ else
+ ifeq ($(SCUMM_BUILD),d)
+ DS_BUILD_D = 1
+ else
+ ifeq ($(SCUMM_BUILD),c)
+ DS_BUILD_C = 1
+ else
+ ifeq ($(SCUMM_BUILD),b)
+ DS_BUILD_B = 1
+ else
+ DS_BUILD_A = 1
+ endif
+ endif
+ endif
+ endif
+ endif
endif
-#DS_BUILD_A = 1
-#DS_BUILD_B = 1
-#DS_BUILD_C = 1
-#DS_BUILD_D = 1
-#DS_BUILD_E = 1
-#DS_BUILD_F = 1
-#DS_BUILD_G = 1
-
# To do:
# - FAT cache?
@@ -82,6 +71,9 @@ VPATH = $(srcdir)
# Command to build libmad is:
# ./configure --host=arm-elf --enable-speed --enable-sso -enable-fpm=arm CFLAGS='-specs=ds_arm9.specs -mthumb-interwork'
+#
+# I actually had to use
+# ./configure --host=arm-elf --enable-speed --enable-sso -enable-fpm=arm CFLAGS='-specs=ds_arm9.specs -mthumb-interwork' LDFLAGS='C:/Progra~1/devkitpro/libnds/lib/libnds9.a' --disable-shared --disable-debugging
USE_ARM_SOUND_ASM = 1
ARM = 1
@@ -190,7 +182,7 @@ endif
LDFLAGS = -specs=ds_arm9.specs -mthumb-interwork -Wl,--wrap,time -mno-fpu -Wl,-Map,map.txt
-INCLUDES= -I./ -I$(portdir)/$(BUILD) -I$(srcdir) -I$(srcdir)/common -I$(portdir)/source \
+INCLUDES= -I./ -I$(portdir)/$(BUILD) -I$(srcdir) -I$(srcdir)/common -I$(portdir)/source -I$(portdir)/source/fat \
-I$(portdir)/data -I$(libndsdir)/include -I$(portdir)/../commoninclude\
-I$(libndsdir)/include -I$(libndsdir)/include/nds -I$(srcdir)/engines -I$(portdir)/source/mad\
-I$(portdir)/source/libcartreset -include $(srcdir)/common/scummsys.h
@@ -276,9 +268,7 @@ OPT_SIZE := -Os
#-mthumb -fno-gcse -fno-schedule-insns2
-
-OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS)
-
+OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS)
@@ -290,6 +280,9 @@ ndsall:
include $(srcdir)/Makefile.common
+semiclean:
+ $(RM) $(portdir)/source/dsoptions.o $(portdir)/source/dsmain.o $(FAT_OBJS) $(DATA_OBJS) $(portdir)/source/wordcompletion.o
+
clean:
$(RM) $(OBJS) $(EXECUTABLE)
rm -fr $(BUILD)