summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrancisco Javier Trujillo Mata2019-10-12 12:47:38 +0200
committerFrancisco Javier Trujillo Mata2021-02-06 14:19:00 +0100
commitb581c72d0245ddcc6e7208b5527bf001dae94adc (patch)
treef01e544579d3779c9fb539d4ab8d8b8069727175 /Makefile
parentff6a6e6e6482ac1a773b192f87916688ebd86abd (diff)
downloadsnes9x2002-b581c72d0245ddcc6e7208b5527bf001dae94adc.tar.gz
snes9x2002-b581c72d0245ddcc6e7208b5527bf001dae94adc.tar.bz2
snes9x2002-b581c72d0245ddcc6e7208b5527bf001dae94adc.zip
Add BGR support and add PS2 platform
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 33f86b3..acbc259 100644
--- a/Makefile
+++ b/Makefile
@@ -170,6 +170,16 @@ else ifeq ($(platform), classic_armv7_a7)
endif
#######################################
+else ifeq ($(platform), ps2)
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
+ CC = mips64r5900el-ps2-elf-gcc$(EXE_EXT)
+ CXX = mips64r5900el-ps2-elf-g++$(EXE_EXT)
+ AR = mips64r5900el-ps2-elf-ar$(EXE_EXT)
+ STATIC_LINKING = 1
+ LOAD_FROM_MEMORY_TEST = 0
+ CFLAGS += -DPS2 -G0 -DFRAME_SKIP -fomit-frame-pointer -ffast-math
+ STATIC_LINKING := 1
+
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
@@ -335,7 +345,7 @@ LIBRETRO_DIR := ./libretro
ifeq ($(DEBUG), 1)
DEFINES += -O0 -g
else
-DEFINES += -O2 -DNDEBUG=1
+DEFINES += -O3 -DNDEBUG=1
endif
LDFLAGS += $(LIBM)