2012-03-17 21:51:06 +00:00
|
|
|
CELL_BUILD_TOOLS = SNC
|
2012-02-27 12:43:44 +00:00
|
|
|
CELL_SDK ?= /usr/local/cell
|
|
|
|
HAVE_LOGGER = 0
|
2012-06-26 15:19:59 +00:00
|
|
|
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
|
2012-02-27 12:43:44 +00:00
|
|
|
|
|
|
|
include $(CELL_MK_DIR)/sdk.makedef.mk
|
|
|
|
|
2012-08-20 13:07:50 +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-03-17 21:51:06 +00:00
|
|
|
STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe
|
2012-02-27 12:43:44 +00:00
|
|
|
|
2015-03-21 05:57:13 +00:00
|
|
|
PPU_CFLAGS += -I. -Ilibretro-common/include -Ideps/zlib -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC
|
2015-06-14 23:56:01 +00:00
|
|
|
PPU_SRCS = frontend/frontend_salamander.c \
|
|
|
|
frontend/frontend_driver.c \
|
|
|
|
frontend/drivers/platform_ps3.c \
|
|
|
|
frontend/drivers/platform_null.c \
|
|
|
|
libretro-common/file/file_path.c \
|
2016-03-20 13:53:54 +00:00
|
|
|
libretro-common/lists/dir_list.c \
|
|
|
|
libretro-common/lists/string_list.c \
|
2015-09-04 16:54:29 +00:00
|
|
|
libretro-common/file/retro_dirent.c \
|
2015-09-21 23:45:16 +00:00
|
|
|
libretro-common/file/retro_stat.c \
|
2015-06-14 23:56:01 +00:00
|
|
|
libretro-common/hash/rhash.c \
|
2015-12-26 06:45:19 +00:00
|
|
|
libretro-common/string/stdstring.c \
|
2015-10-26 01:46:51 +00:00
|
|
|
libretro-common/compat/compat_strl.c \
|
2016-12-17 18:35:51 +00:00
|
|
|
libretro-common/compat/compat_strcasestr.c \
|
2016-03-20 15:29:14 +00:00
|
|
|
libretro-common/streams/file_stream.c \
|
2015-11-23 11:03:38 +00:00
|
|
|
libretro-common/file/config_file.c \
|
2016-06-20 03:20:14 +00:00
|
|
|
file_path_str.c \
|
2015-11-23 11:03:38 +00:00
|
|
|
verbosity.c
|
2012-02-27 12:43:44 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LOGGER), 1)
|
2015-09-16 09:33:14 +00:00
|
|
|
PPU_CFLAGS += -DHAVE_LOGGER
|
2016-05-19 09:46:54 +00:00
|
|
|
PPU_SRCS += network/net_logger.c \
|
2016-05-01 22:05:33 +00:00
|
|
|
libretro-common/net/net_compat.c \
|
|
|
|
libretro-common/net/net_socket.c
|
2012-02-27 12:43:44 +00:00
|
|
|
endif
|
|
|
|
|
2012-08-06 00:36:41 +00:00
|
|
|
PPU_TARGET = retroarch-salamander_ps3.elf
|
2012-02-27 12:43:44 +00:00
|
|
|
|
|
|
|
ifeq ($(CELL_BUILD_TOOLS),SNC)
|
2012-03-17 21:51:06 +00:00
|
|
|
PPU_CFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
|
|
|
|
PPU_CXXFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
|
2012-08-20 15:16:40 +00:00
|
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
2012-08-20 13:07:50 +00:00
|
|
|
PPU_CLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
2012-03-17 21:51:06 +00:00
|
|
|
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
2012-08-20 15:16:40 +00:00
|
|
|
else
|
2012-11-27 22:13:27 +00:00
|
|
|
PPU_CFLAGS += -std=gnu99
|
2012-03-17 21:51:06 +00:00
|
|
|
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
2012-08-20 13:07:50 +00:00
|
|
|
PPU_CLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
|
2012-11-27 22:13:27 +00:00
|
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
2012-02-27 12:43:44 +00:00
|
|
|
endif
|
|
|
|
|
2012-05-07 17:45:13 +00:00
|
|
|
PPU_LDLIBS += -lm -lnet_stub -lnetctl_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lsysutil_game_stub -lfs_stub -lsysutil_np_stub
|
2012-02-27 12:43:44 +00:00
|
|
|
|
2012-03-17 21:51:06 +00:00
|
|
|
PPU_OPTIMIZE_LV := -O2
|
|
|
|
|
2012-06-26 15:19:59 +00:00
|
|
|
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
|
|
|
|
|
2012-02-27 12:43:44 +00:00
|
|
|
include $(CELL_MK_DIR)/sdk.target.mk
|