aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalCT2022-02-28 14:17:58 +0100
committerCrystalCT2022-02-28 14:17:58 +0100
commitb67311ea5b5ebaa61a4290bf87fb28784aa8ddcf (patch)
tree5543af9dbe5574ca2ae136917cbfc97ae9e56c57
parentabd072aa370620112a88cc7b350c2dfb1b58185a (diff)
downloadsnes9x2005-b67311ea5b5ebaa61a4290bf87fb28784aa8ddcf.tar.gz
snes9x2005-b67311ea5b5ebaa61a4290bf87fb28784aa8ddcf.tar.bz2
snes9x2005-b67311ea5b5ebaa61a4290bf87fb28784aa8ddcf.zip
PS3/PSL1GHT Makefile update
-rw-r--r--Makefile24
1 files changed, 9 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 4e40cc1..6664127 100644
--- a/Makefile
+++ b/Makefile
@@ -186,24 +186,18 @@ else ifeq ($(platform), qnx)
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
CC = qcc -Vgcc_ntoarmv7le
CXX = QCC -Vgcc_ntoarmv7le_cpp
-# PS3
-else ifeq ($(platform), ps3)
+# Lightweight PS3 Homebrew SDK
+else ifneq (,$(filter $(platform), ps3 psl1ght))
TARGET := $(TARGET_NAME)_libretro_$(platform).a
- CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
- CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
- AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
+ CC = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)gcc$(EXE_EXT)
+ CXX = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)g++$(EXE_EXT)
+ AR = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)ar$(EXE_EXT)
STATIC_LINKING = 1
- FLAGS += -DMSB_FIRST
+ FLAGS += -DMSB_FIRST -D__PS3__
OLD_GCC = 1
-# PS3 (SNC)
-else ifeq ($(platform), sncps3)
- TARGET := $(TARGET_NAME)_libretro_ps3.a
- CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
- CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
- AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
- STATIC_LINKING = 1
- FLAGS += -DMSB_FIRST
- NO_GCC = 1
+ ifeq ($(platform), psl1ght)
+ FLAGS += -D__PSL1GHT__
+ endif
# PSP1
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a