mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
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
This commit is contained in:
parent
cc2b35ee1f
commit
dee529f30c
@ -128,6 +128,10 @@ clean:
|
||||
@echo clean ...$(TARGET)
|
||||
@rm -fr $(BUILD) *.bin
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
semiclean:
|
||||
@echo semiclean ...$(TARGET)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
|
@ -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)
|
||||
|
@ -15,6 +15,24 @@ all:
|
||||
@for i in $(SUBDIRS); do if test -d $$i; then make -C $$i; fi; done;
|
||||
clean:
|
||||
@for i in $(SUBDIRS); do if test -d $$i; then make -C $$i clean; fi; done;
|
||||
semiclean:
|
||||
@for i in $(SUBDIRS); do if test -d $$i; then make -C $$i semiclean; fi; done;
|
||||
|
||||
export:
|
||||
@for i in $(SUBDIRS); do if test -d $$i; then make -C $$i export; fi; done;
|
||||
|
||||
allbuilds:
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=a
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=b
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=c
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=d
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=e
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=f
|
||||
make semiclean
|
||||
make all SCUMM_BUILD=g
|
||||
|
Loading…
x
Reference in New Issue
Block a user