RetroArch/Makefile.ps3.salamander

44 lines
1.3 KiB
Makefile
Raw Normal View History

CELL_BUILD_TOOLS = GCC
CELL_SDK ?= /usr/local/cell
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = opt
HAVE_LOGGER = 0
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
MAKE_SELF = make_self_npdrm
PKG_SCRIPT = ps3/ps3py/pkg.py
PKG_FINALIZE = package_finalize
STRIP = $(CELL_HOST_PATH)/ppu/bin/ppu-lv2-strip
COPY = cp
MOVE = mv
C = $(CELL_HOST_PATH)/ppu/bin/ppu-lv2-gcc
CC = $(CELL_HOST_PATH)/ppu/bin/ppu-lv2-g++
2012-02-28 10:09:43 +00:00
PPU_CFLAGS += -I. -O2 -g
PPU_SRCS = ps3/salamander/main.c compat/compat.c conf/config_file.c
ifeq ($(HAVE_LOGGER), 1)
PPU_CFLAGS += -DHAVE_LOGGER
2012-03-12 23:44:37 +00:00
PPU_SRCS += console/logger/logger.c
endif
PPU_TARGET = ssnes-salamander.elf
ifeq ($(CELL_BUILD_TOOLS),SNC)
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
else
PPU_CFLAGS += -funroll-loops
PPU_CXXFLAGS += -funroll-loops
endif
PPU_OPTIMIZE_LV := -O2
PPU_LDLIBS += -lpthread -lm -lnet_stub -lnetctl_stub -lm -ldbgfont_gcm -lgcm_cmd -lgcm_sys_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lsysutil_game_stub -lfs_stub -lsysutil_np_stub
include $(CELL_MK_DIR)/sdk.target.mk