[Scummvm-cvs-logs] SF.net SVN: scummvm:[48826] scummvm/trunk/backends/platform/psp/Makefile
bluddy at users.sourceforge.net
bluddy at users.sourceforge.net
Wed Apr 28 16:13:20 CEST 2010
Revision: 48826
http://scummvm.svn.sourceforge.net/scummvm/?rev=48826&view=rev
Author: bluddy
Date: 2010-04-28 14:13:19 +0000 (Wed, 28 Apr 2010)
Log Message:
-----------
PSP: added profiling support to custom makefile for ease of use
Modified Paths:
--------------
scummvm/trunk/backends/platform/psp/Makefile
Modified: scummvm/trunk/backends/platform/psp/Makefile
===================================================================
--- scummvm/trunk/backends/platform/psp/Makefile 2010-04-28 13:55:12 UTC (rev 48825)
+++ scummvm/trunk/backends/platform/psp/Makefile 2010-04-28 14:13:19 UTC (rev 48826)
@@ -2,7 +2,7 @@
# $URL$
# $Id$
-VERBOSE_BUILD=1
+
#Use only this section to modify how the makefile behaves ------------
# Scummvm engine config: choose which engines are enabled
@@ -39,10 +39,13 @@
ENABLE_TOUCHE = $(ENABLED)
ENABLE_TUCKER = $(ENABLED)
-
-#Set to 1 to enable, 0 to disable dynamic modules
+# Set to 1 to enable seeing the commands to gcc
+VERBOSE_BUILD=1
+# Set to 1 to enable, 0 to disable dynamic modules
DYNAMIC_MODULES = 1
-#Set to 1 to enable, 0 to disable libmad and libogg
+# Set to 1 to enable profiling
+ENABLE_PROFILING = 0
+# Set to 1 to enable, 0 to disable libmad and libogg
USE_LIBMAD = 1
USE_LIBOGG = 1
# --------------------------------------------------------------------
@@ -63,14 +66,13 @@
# Variables for common Scummvm makefile
-#CC = psp-gcc
CXX = psp-g++
CXXFLAGS = -O3 -Wall -Wno-multichar -fno-exceptions -fno-rtti
-DEFINES = -D__PSP__ -DNONSTANDARD_PORT -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DUSE_ZLIB -DDISABLE_DOSBOX_OPL -DUSE_RGB_COLOR
+DEFINES = -D__PSP__ -DNONSTANDARD_PORT -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DUSE_ZLIB -DDISABLE_DOSBOX_OPL -DUSE_RGB_COLOR
+
LDFLAGS :=
INCDIR := $(srcdir) . $(srcdir)/engines/ $(PSPSDK)/include
INCLUDES := $(addprefix -I, $(INCDIR))
-#EXECUTABLE = $(TARGET)
DEPDIR = .deps
MODULE_DIRS += ./
MKDIR = mkdir -p
@@ -119,12 +121,19 @@
ENABLED = STATIC_PLUGIN
endif
+# Test for profiling
+ifeq ($(ENABLE_PROFILING),1)
+DEFINES += -DENABLE_PROFILING
+CXXFLAGS += -pg -g
+LDFLAGS += -pg
+endif
+
# SDL Libs and Flags
SDLFLAGS := $(shell $(PSPBIN)/sdl-config --cflags)
SDLLIBS := $(shell $(PSPBIN)/sdl-config --libs)
# PSP LIBS
-PSPLIBS = -lpspvfpu -lpspdebug -lpspgu -lpspge -lpspdisplay -lpspctrl -lpspsdk \
- -lpsputility -lpspuser -lpsppower -lpsphprm -lpspsdk -lpsprtc -lpspaudio
+PSPLIBS = -lpspprof -lpspvfpu -lpspdebug -lpspgu -lpspge -lpspdisplay -lpspctrl -lpspsdk \
+ -lpsputility -lpspuser -lpsppower -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lpspkernel
# Add in PSPSDK includes and libraries.
CXXFLAGS += $(SDLFLAGS)
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