aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/Makefile
diff options
context:
space:
mode:
authorYotam Barnoy2010-04-28 14:13:19 +0000
committerYotam Barnoy2010-04-28 14:13:19 +0000
commit5cb9f7ca2ef01ccf5290dc3aca4f2d13f40ff26a (patch)
tree8e3153edefd179b16df57df2c81e547516e72b9a /backends/platform/psp/Makefile
parent2b6958995be123382e512f5c16ca6447b0f81933 (diff)
downloadscummvm-rg350-5cb9f7ca2ef01ccf5290dc3aca4f2d13f40ff26a.tar.gz
scummvm-rg350-5cb9f7ca2ef01ccf5290dc3aca4f2d13f40ff26a.tar.bz2
scummvm-rg350-5cb9f7ca2ef01ccf5290dc3aca4f2d13f40ff26a.zip
PSP: added profiling support to custom makefile for ease of use
svn-id: r48826
Diffstat (limited to 'backends/platform/psp/Makefile')
-rw-r--r--backends/platform/psp/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/backends/platform/psp/Makefile b/backends/platform/psp/Makefile
index cf1eb1611e..6f76f6d805 100644
--- a/backends/platform/psp/Makefile
+++ b/backends/platform/psp/Makefile
@@ -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_TINSEL = $(ENABLED)
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 @@ endif
# 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 @@ else
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)