aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure1
-rw-r--r--test/module.mk6
2 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 8b7b86f958..7eaf54a6bc 100755
--- a/configure
+++ b/configure
@@ -2637,6 +2637,7 @@ case $_host_os in
append_var CXXFLAGS "-I$PSPSDK/include"
# FIXME: Why is the following in CXXFLAGS and not in DEFINES? Change or document this.
append_var CXXFLAGS "-D_PSP_FW_VERSION=150"
+ add_line_to_config_mk 'PSP = 1'
;;
solaris*)
append_var DEFINES "-DSOLARIS"
diff --git a/test/module.mk b/test/module.mk
index de2f94d8c6..607eacc1ea 100644
--- a/test/module.mk
+++ b/test/module.mk
@@ -23,6 +23,12 @@ ifdef N64
TEST_LDFLAGS := $(filter-out -mno-crt0,$(TEST_LDFLAGS))
endif
+ifdef PSP
+TEST_LIBS += backends/platform/psp/memory.o \
+ backends/platform/psp/mp3.o \
+ backends/platform/psp/trace.o
+endif
+
ifdef HAVE_GCC3
# In test/common/str.h, we test a zero length format string. This causes GCC
# to generate a warning which in turn poses a problem when building with -Werror.