forked from libretro/snes9x2010
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-eboot-launcher
69 lines (54 loc) · 2.75 KB
/
Makefile-eboot-launcher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# specify build tools
CELL_BUILD_TOOLS = SNC
#explicitly set some cell sdk defaults
CELL_SDK ?= /usr/local/cell
# CELL_GPU_TYPE (currently RSX is only one option)
CELL_GPU_TYPE = RSX
#CELL_PSGL_VERSION is debug, dpm or opt
CELL_PSGL_VERSION = opt
#Python binary - only useful for PSL1ght scripts
PYTHONBIN = python2.7
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
#CELL_HOST_PATH ?= $(CELL_SDK)/host-win32
MKFSELF = $(CELL_HOST_PATH)/bin/make_fself
MKFSELF_NPDRM = $(CELL_HOST_PATH)/bin/make_fself_npdrm
MKPKG_NPDRM = $(CELL_HOST_PATH)/bin/make_package_npdrm
# Geohot CFW defines
MKSELF_GEOHOT = make_self_npdrm
MKPKG_PSLIGHT = buildtools/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++
EBOOT_LAUNCHER_DIR = eboot-launcher
PPU_SRCS = $(EBOOT_LAUNCHER_DIR)/main.cpp
PPU_TARGET = EBOOT.ELF
PPU_CFLAGS += -I. -DUSE_FILE32API -Dunix -DPSGL -O2 -DCORRECT_VRAM_READS -DRIGHTSHIFT_IS_SAR -DSN_TARGET_PS3 -DNDEBUG=1 -DWORDS_BIGENDIAN -DBLARGG_BIG_ENDIAN=1 -DNO_LOGGER -D__POWERPC__ -D__ppc__ -g
PPU_CXXFLAGS += -I./src/ -I./src/snes9x/ -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DPSGL -O2 -DCORRECT_VRAM_READS -DRIGHTSHIFT_IS_SAR -DNO_LOGGER -DSN_TARGET_PS3 -DNDEBUG=1 -DWORDS_BIGENDIAN -DBLARGG_BIG_ENDIAN=1 -D__POWERPC__ -D__ppc__
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 += -lfont_stub -lfontFT_stub -lfreetype_stub -lpthread -lmixer -lm -lmstreamSPURSMP3 -ladec_stub -laudio_stub -lnet_stub -lnetctl_stub -lpngdec_stub -lm -ldbgfont_gcm -lgcm_cmd -lgcm_sys_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lfs_stub -lhttp_util_stub -lspurs_stub -ljpgdec_stub -lhttp_stub -lsysutil_music_export_stub -lsysutil_photo_export_stub -lsysutil_video_export_stub -lrtc_stub \
include $(CELL_MK_DIR)/sdk.target.mk
.PHONY: pkg
#standard pkg packaging
pkg: $(PPU_TARGET)
$(MKSELF_GEOHOT) EBOOT.ELF pkg/USRDIR/EBOOT.BIN SNES900000
#massively reduced filesize using MKSELF_GEOHOT - use this for normal jailbreak builds
.PHONY: pkg-signed
pkg-signed: $(PPU_TARGET)
$(MKSELF_GEOHOT) EBOOT.ELF pkg/USRDIR/EBOOT.BIN SNES900000
#use this to create a PKG for use with Geohot CFW 3.55
.PHONY: pkg-signed-cfw
pkg-signed-cfw:
$(MKSELF_GEOHOT) EBOOT.ELF pkg/USRDIR/EBOOT.BIN SNES900000