2012-08-16 07:31:05 +00:00
|
|
|
RARCH_VERSION = "0.9.7-rc2"
|
2012-06-20 06:25:23 +00:00
|
|
|
|
|
|
|
#which compiler to build with - GCC or SNC
|
|
|
|
#set to GCC for debug builds for use with debugger
|
|
|
|
CELL_BUILD_TOOLS = SNC
|
|
|
|
CELL_GPU_TYPE = RSX
|
|
|
|
CELL_PSGL_VERSION = ultra-opt
|
|
|
|
|
|
|
|
DEBUG = 0
|
|
|
|
HAVE_RGL = 1
|
|
|
|
HAVE_LOGGER = 0
|
|
|
|
|
|
|
|
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
|
|
|
|
PC_DEVELOPMENT_UDP_PORT = 3490
|
|
|
|
|
|
|
|
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
|
|
|
|
include $(CELL_MK_DIR)/sdk.makedef.mk
|
|
|
|
|
2012-08-20 13:55:13 +00:00
|
|
|
# system platform
|
|
|
|
system_platform = unix
|
|
|
|
ifeq ($(shell uname -a),)
|
|
|
|
EXE_EXT = .exe
|
|
|
|
system_platform = win
|
|
|
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
|
|
|
system_platform = osx
|
|
|
|
else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
|
|
|
system_platform = win
|
|
|
|
endif
|
|
|
|
|
2012-06-30 13:06:59 +00:00
|
|
|
PPU_LIB_TARGET = libretroarch_ps3.a
|
2012-06-20 06:25:23 +00:00
|
|
|
|
|
|
|
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
|
|
|
|
INCDIRS = -I. -Ips3 -Icommon
|
|
|
|
|
|
|
|
PPU_SRCS = console/griffin/griffin.c console/rzlib/rzlib.c
|
|
|
|
|
|
|
|
ifeq ($(HAVE_RGL), 1)
|
|
|
|
DEFINES = -DHAVE_RGL
|
2012-06-30 13:06:59 +00:00
|
|
|
GL_LIBS := -lrgl_ps3
|
2012-06-20 06:25:23 +00:00
|
|
|
else
|
|
|
|
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CELL_BUILD_TOOLS), SNC)
|
|
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
|
|
|
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
|
|
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
|
|
SNC_PPU_AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
|
2012-08-20 15:16:40 +00:00
|
|
|
else
|
|
|
|
ifneq($(system_platform), win)
|
2012-06-20 06:25:23 +00:00
|
|
|
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
|
|
|
|
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
|
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
|
2012-08-20 13:55:13 +00:00
|
|
|
PPU_AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
|
2012-06-20 06:25:23 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-23 09:09:36 +00:00
|
|
|
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
|
|
|
|
|
2012-08-04 01:25:44 +00:00
|
|
|
DEFINES += -DHAVE_DEFAULT_RETROPAD_INPUT -DHAVE_THREAD -DRARCH_CONSOLE -DHAVE_RMENU -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES11 -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_HDD_CACHE_PARTITION -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
2012-06-20 06:25:23 +00:00
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
PPU_OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
|
|
|
PPU_OPTIMIZE_LV := -O3 -g
|
|
|
|
endif
|
|
|
|
|
|
|
|
PPU_CFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
|
|
PPU_CXXFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
|
|
|
|
|
|
ifeq ($(HAVE_LOGGER), 1)
|
|
|
|
PPU_CFLAGS += -DHAVE_LOGGER
|
|
|
|
PPU_SRCS += console/logger/logger.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(CELL_MK_DIR)/sdk.target.mk
|