summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2018-12-28 04:38:49 +0100
committertwinaphex2018-12-28 04:38:49 +0100
commit8b456289c6c31e1f36df2843f7a6044757b96dbe (patch)
tree4c507fe31910252139ab466bd50819b15c24d02f /Makefile
parentf4091374320a4decaf2756f3a90374e843c9f6c7 (diff)
downloadsnes9x2002-8b456289c6c31e1f36df2843f7a6044757b96dbe.tar.gz
snes9x2002-8b456289c6c31e1f36df2843f7a6044757b96dbe.tar.bz2
snes9x2002-8b456289c6c31e1f36df2843f7a6044757b96dbe.zip
Add psp1 target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5b26a78..fb4f7d6 100644
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,20 @@ else ifeq ($(platform), classic_armv7_a7)
endif
#######################################
+else ifeq ($(platform), psp1)
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
+ CC = psp-gcc$(EXE_EXT)
+ CXX = psp-g++$(EXE_EXT)
+ AR = psp-ar$(EXE_EXT)
+ STATIC_LINKING = 1
+ LOAD_FROM_MEMORY_TEST = 0
+ FLAGS += -G0
+ CFLAGS += \
+ -march=allegrex -mno-abicalls -fno-pic \
+ -fno-builtin -fno-exceptions -ffunction-sections
+ DEFS += -DPSP -D_PSP_FW_VERSION=371
+ STATIC_LINKING := 1
+
# Vita
else ifeq ($(platform), vita)
TARGET := $(TARGET_NAME)_libretro_$(platform).a