[Scummvm-cvs-logs] SF.net SVN: scummvm: [27676] scummvm/trunk/backends/platform/wince/Makefile
robinwatts at users.sourceforge.net
robinwatts at users.sourceforge.net
Sat Jun 23 18:37:42 CEST 2007
Revision: 27676
http://scummvm.svn.sourceforge.net/scummvm/?rev=27676&view=rev
Author: robinwatts
Date: 2007-06-23 09:37:42 -0700 (Sat, 23 Jun 2007)
Log Message:
-----------
Tweaks to WinCE makefile.
The choice of which libraries to use (zlib, tremorce, mad, mpeg2 etc) is
now made by a single define per library towards the top of the makefile.
Given that developers tend to have different options selected on their local
builds, hopefully this will minimise the changes on aubsequent svn updates.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wince/Makefile
Modified: scummvm/trunk/backends/platform/wince/Makefile
===================================================================
--- scummvm/trunk/backends/platform/wince/Makefile 2007-06-23 16:27:28 UTC (rev 27675)
+++ scummvm/trunk/backends/platform/wince/Makefile 2007-06-23 16:37:42 UTC (rev 27676)
@@ -3,10 +3,21 @@
# $URL$
# $Id$
+########################################################################
+## Set this to point to where the tools are installed on your system
+
wince_gcc_root = /cygdrive/e/wince-gcc-root
-srcdir = ../../..
-VPATH = $(srcdir)
+
+########################################################################
+## Do you want a debug build or not?
+
+#WINCE_DEBUG_BUILD = 1
+
+
+########################################################################
+## Disable whichever engines you want here
+
#DISABLE_SCUMM = 1
#DISABLE_SKY = 1
#DISABLE_QUEEN = 1
@@ -23,10 +34,34 @@
#DISABLE_PARALLACTION = 1
DISABLE_CRUISE = 1
+
+########################################################################
+## Pick which libraries you want to use here
+
+USE_MAD = 1
+USE_MPEG2 = 1
+USE_TREMOR = 1
+#USE_TREMOLO = 1
+USE_FLAC = 1
+USE_ZLIB = 1
+
+
+########################################################################
+## You're probably not going to want to change these defines...
+
#DISABLE_HQ_SCALERS = 1
-
USE_ARM_SOUND_ASM = 1
+USE_ARM_SMUSH = 1
+
+########################################################################
+## Hopefully you shouldn't need to change anything below here. ##
+########################################################################
+
+
+srcdir = ../../..
+VPATH = $(srcdir)
+
CXX = arm-wince-pe-g++
LD = arm-wince-pe-g++
AR = arm-wince-pe-ar cru
@@ -40,10 +75,20 @@
CAT = cat
AS = arm-wince-pe-as
-DEFINES := -D_WIN32_WCE=300 -DARM -D__ARM__ -D_ARM_ -DUNICODE -DSCUMM_NEED_ALIGNMENT -DFPM_DEFAULT -DUSE_MAD -DNONSTANDARD_PORT -DUSE_TREMOR -DUSE_VORBIS -DUSE_MPEG2 -DWIN32 -DUSE_ZLIB -DUSE_FLAC
+########################################################################
+## Set up defines, includes, cflags etc
+
+DEFINES := -D_WIN32_WCE=300 -DARM -D__ARM__ -D_ARM_ -DUNICODE -DSCUMM_NEED_ALIGNMENT
+DEFINES += -DFPM_DEFAULT
+
+DEFINES += -DNONSTANDARD_PORT
+DEFINES += -DWIN32
DEFINES += -D__stdcall= -Dcdecl= -D__cdecl__= -D__cdecl= -Wno-multichar
-#DEFINES += -DDEBUG -DUSE_WINDBG -g
+ifdef WINCE_DEBUG_BUILD
+DEFINES += -DDEBUG -DUSE_WINDBG -g
+endif
+
INCLUDES := -I$(srcdir) -I. -I$(srcdir)/engines -Imissing/gcc -Ilibs/include -Ilibs/include/sdl -ICEgui -ICEkeys -I$(wince_gcc_root)/include
CFLAGS := -O3 -march=armv4 -mtune=xscale
@@ -51,8 +96,48 @@
CXXFLAGS := $(CFLAGS)
LDFLAGS := -Llibs/lib -L$(wince_gcc_root)/lib
-LIBS := -lSDL -lzlib -lmad -lmpeg2 -ltremorce -lFLAC --entry WinMainCRTStartup
+LIBS := -lSDL
+ifdef USE_ZLIB
+DEFINES += -DUSE_ZLIB
+LIBS += -lzlib
+endif
+
+ifdef USE_MAD
+DEFINES += -DUSE_MAD
+LIBS += -lmad
+endif
+
+ifdef USE_MPEG2
+DEFINES += -DUSE_MPEG2
+LIBS += -lmpeg2
+endif
+
+ifdef USE_TREMOR
+DEFINES += -DUSE_TREMOR -DUSE_VORBIS
+LIBS += -ltremorce
+endif
+
+ifdef USE_TREMOLO
+DEFINES += -DUSE_TREMOR -DUSE_VORBIS
+INCLUDES += -Ilibs/include/tremolo
+LIBS += -llibTremolo
+endif
+
+ifdef USE_FLAC
+DEFINES += -DUSE_FLAC
+LIBS += -lFLAC
+endif
+
+ifdef USE_ARM_SMUSH
+DEFINES += -DUSE_ARM_SMUSH
+endif
+
+LIBS += --entry WinMainCRTStartup
+
+########################################################################
+# Targets follow here
+
TARGET = scummvm.exe
OBJS :=
MODULE_DIRS += .
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list