diff options
Diffstat (limited to 'backends/platform/ds/arm9')
-rw-r--r-- | backends/platform/ds/arm9/makefile | 71 |
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) |