aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorEugene Sandulenko2008-01-11 22:44:28 +0000
committerEugene Sandulenko2008-01-11 22:44:28 +0000
commitd205129f2bd1c51791b73b619797cfe0b4723800 (patch)
tree4a181acc07ece066fae92c52b61b495b76b0b264 /backends/platform
parent9c74480beb6d2b96095161d16eda7560afc700cc (diff)
downloadscummvm-rg350-d205129f2bd1c51791b73b619797cfe0b4723800.tar.gz
scummvm-rg350-d205129f2bd1c51791b73b619797cfe0b4723800.tar.bz2
scummvm-rg350-d205129f2bd1c51791b73b619797cfe0b4723800.zip
First part of Maemo port
svn-id: r30427
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/maemo/Makefile72
1 files changed, 11 insertions, 61 deletions
diff --git a/backends/platform/maemo/Makefile b/backends/platform/maemo/Makefile
index 4ef251e356..f70a00e490 100644
--- a/backends/platform/maemo/Makefile
+++ b/backends/platform/maemo/Makefile
@@ -1,69 +1,19 @@
-# ScummVM Maemo MakeFile
-# $URL$
-# $Id$
+.PHONY: all
-#control build
-DISABLE_HQ_SCALERS = true
+all:
-#DISABLE_SCUMM = 1
-#DISABLE_HE = 1
-DISABLE_AGOS = 1
-DISABLE_SKY = 1
-DISABLE_SWORD1 = 1
-DISABLE_SWORD2 = 1
-DISABLE_QUEEN = 1
-DISABLE_KYRA = 1
-DISABLE_SAGA = 1
-DISABLE_GOB = 1
-DISABLE_LURE = 1
-DISABLE_CINE = 1
-DISABLE_AGI = 1
-srcdir = ../../..
-VPATH = $(srcdir)
+SRCDIR = ../../..
-CXX := g++
-EXECUTABLE := scummvm
+config:
+ cd $(SRCDIR) ; CXXFLAGS="-Os -mcpu=arm926ej-s -fomit-frame-pointer -DMAEMO_SDL" ./configure --host=arm-linux --prefix=/usr --disable-debug --disable-mt32emu --disable-hq-scalers --with-tremor-prefix=/usr --enable-tremor --with-zlib-prefix=/usr --enable-zlib --with-mad-prefix=/usr --enable-mad --enable-flac --disable-fluidsynth
-INCDIR = $(srcdir)/ . $(srcdir)/engines/
+scummvm:
+ cd $(SRCDIR) ; make
+ echo "If there is compiler crash (in Kyra engine) then cd ../../.. and copy/run last line with -O3 instead of -Os and re-run make"
+# cp $(SRCDIR)/scummvm .
-CXXFLAGS := -g -ansi -W -Wno-unused-parameter
-CXXFLAGS += `pkg-config --cflags gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0`
-CXXFLAGS += $(addprefix -I,$(INCDIR)) -I. -Wall $(CXXFLAGS)
-CXXFLAGS += -O -Wuninitialized
-CXXFLAGS += -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
-# Even more warnings...
-CXXFLAGS += -pedantic -Wpointer-arith -Wcast-qual -Wconversion
-CXXFLAGS += -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor
-CXXFLAGS += -Wno-reorder -Wwrite-strings -fcheck-new
-LIBS += -lz -L/usr/lib -lSDL -lpthread -lXsp -losso
-LIBS += `pkg-config --libs gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0`
-INCLUDES += -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include
-OBJS +=
-DEFINES += -DUNIX -DNONSTANDARD_PORT -D__MAEMO__
-LDFLAGS +=
-
-RANLIB := ranlib
-INSTALL := install
-AR := ar cru
-MKDIR := mkdir -p
-ECHO := printf
-CAT := cat
-RM := rm -f
-RM_REC := rm -f -r
-CP := cp
-
-OBJS := main.o maemo-sdl.o
-
-MODULE_DIRS += .
-
-
-BACKEND := sdl
-MODULES += backends/platform/sdl base
-MODULE_DIRS += .
-
-HAVE_GCC3 = 1
-
-include $(srcdir)/Makefile.common
+deb: $(SRCDIR)/scummvm
+ cd $(SRCDIR) ; dpkg-buildpackage -rfakeroot -b -nc