2012-05-06 01:46:55 +00:00
|
|
|
#which compiler to build with - GCC or SNC
|
|
|
|
#set to GCC for debug builds for use with debugger
|
2012-11-06 08:23:20 +00:00
|
|
|
CELL_BUILD_TOOLS = GCC
|
2012-05-06 01:46:55 +00:00
|
|
|
CELL_GPU_TYPE = RSX
|
|
|
|
|
|
|
|
DEBUG = 0
|
2012-11-06 08:23:20 +00:00
|
|
|
STRIPPING_ENABLE = 1
|
2013-01-05 19:29:38 +00:00
|
|
|
RGL_2D = 1
|
2012-05-06 01:46:55 +00:00
|
|
|
|
|
|
|
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-06-30 13:06:59 +00:00
|
|
|
PPU_LIB_TARGET = librgl_ps3.a
|
2012-05-06 01:46:55 +00:00
|
|
|
|
|
|
|
LDDIRS = -L.
|
2014-10-21 06:39:37 +00:00
|
|
|
INCDIRS = -I. -Ips3/gcmgl/include -Ilibretro-sdk/include
|
2012-11-06 08:23:20 +00:00
|
|
|
|
2014-02-25 20:49:42 +00:00
|
|
|
RGL_DIR = ps3/gcmgl/src
|
2012-11-06 08:23:20 +00:00
|
|
|
|
2013-11-01 23:28:59 +00:00
|
|
|
PPU_SRCS = $(RGL_DIR)/libelf/readelf.c \
|
2013-11-19 03:30:43 +00:00
|
|
|
$(RGL_DIR)/rgl_ps3_raster.cpp \
|
|
|
|
$(RGL_DIR)/rgl_ps3.cpp
|
2012-05-06 01:46:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
else
|
|
|
|
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
|
|
|
|
PPU_AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
|
|
|
|
endif
|
|
|
|
|
2012-07-23 09:09:36 +00:00
|
|
|
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
|
|
|
|
|
2012-05-06 01:46:55 +00:00
|
|
|
|
2012-11-06 08:23:20 +00:00
|
|
|
PPU_LDLIBS = -lio_stub
|
2012-05-06 01:46:55 +00:00
|
|
|
|
2013-12-17 18:10:21 +00:00
|
|
|
DEFINES += -D__CELLOS_LV2__ -DRARCH_INTERNAL
|
2012-05-06 01:46:55 +00:00
|
|
|
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
PPU_OPTIMIZE_LV := -O0 -g
|
|
|
|
else
|
|
|
|
PPU_OPTIMIZE_LV := -O3
|
|
|
|
endif
|
|
|
|
|
|
|
|
PPU_CFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
|
|
PPU_CXXFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
|
|
|
|
|
|
include $(CELL_MK_DIR)/sdk.target.mk
|