-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
74 lines (53 loc) · 2.09 KB
/
Makefile
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
70
71
72
73
74
CELL_MK_DIR = $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
PEXPORTPICKUP = ppu-lv2-prx-exportpickup
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='ecrti.o)
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='crtbegin.o)
CRT_TAIL += $(shell ppu-lv2-gcc -print-file-name'='crtend.o)
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='ecrtn.o)
PPU_SRCS = mem.c misc.c png_dec.c blitting.c games.c main.c
PPU_INCDIRS = -I ./inc
PPU_PRX_TARGET = ps3_vsh_menu.prx
PPU_PRX_LDFLAGS = -L ./lib -Wl,--strip-unused-data
#_Linker_specific:
#PPU_PRX_CXXLD += -mno-sn-ld
#PPU_PRX_LDFLAGS = -L ./lib -Wl,--as-needed,--warn-once,-v,--warn-unresolved-symbols
PPU_PRX_STRIP_FLAGS = -s
PPU_PRX_LDLIBS = -lfs_stub \
-lrtc_stub \
-lstdc_export_stub \
-lsysPrxForUser_export_stub \
-lsys_net_export_stub \
-lvsh_export_stub \
-lpaf_export_stub \
-lvshcommon_export_stub \
-lvshmain_export_stub \
-lvshtask_export_stub \
-lvshnet_export_stub \
-lallocator_export_stub \
-lsdk_export_stub \
-lxsetting_export_stub \
-lsys_io_export_stub \
-lpngdec_ppuonly_export_stub \
-lnetctl_main_export_stub
PPU_CFLAGS += -Os -ffunction-sections -fdata-sections \
-fno-builtin-printf -nodefaultlibs -std=gnu99 \
-Wno-shadow -Wno-unused-parameter -ffast-math
#_For_Debug:
PPU_SRCS += network.c
PPU_CFLAGS += -DDEBUG
PPU_PRX_LDLIBS += -lnet_stub
#_Font_implementation:
PPU_CFLAGS += -DHAVE_SYS_FONT
#PPU_CFLAGS += -DHAVE_PNG_FONT
#PPU_CFLAGS += -DHAVE_XBM_FONT
#_Extras:
PPU_SRCS += starfield.c
PPU_CFLAGS += -DHAVE_STARFIELD
PPU_SRCS += scroller.c
PPU_CFLAGS += -DHAVE_SSCROLLER
CLEANFILES = ./$(PPU_SPRX_TARGET)
all:
$(MAKE) $(PPU_OBJS_DEPENDS)
$(PPU_PRX_STRIP) --strip-debug --strip-section-header $(PPU_PRX_TARGET)
include $(CELL_MK_DIR)/sdk.target.mk