-
-
Notifications
You must be signed in to change notification settings - Fork 175
/
makefile
57 lines (48 loc) · 1.94 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
CELL_MK_DIR = $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
BUILD_TYPE = release
LIBSTUB_DIR = ./lib
PRX_DIR = .
INSTALL = cp
PEXPORTPICKUP = ppu-lv2-prx-exportpickup
PRX_LDFLAGS_EXTRA = -L ./lib -Wl,--strip-unused-data
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='ecrti.o)
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='crtbegin.o)
CRT_HEAD += $(shell ppu-lv2-gcc -print-file-name'='ecrtn.o)
CRT_TAIL += $(shell ppu-lv2-gcc -print-file-name'='crtend.o)
PPU_SRCS = libc.c printf.c main.c cobra/cobra.c
PPU_PRX_TARGET = webftp_server.prx
PPU_PRX_LDFLAGS += $(PRX_LDFLAGS_EXTRA)
PPU_PRX_STRIP_FLAGS = -s
PPU_PRX_LDLIBS = -lfs_stub -lnet_stub -lrtc_stub -lio_stub -lgcm_sys_stub \
-lallocator_export_stub -lstdc_export_stub \
-lnetctl_stub -lsysmodule_stub -lhttp_util_stub -lhttp_stub \
-lcrashdump_system_export_stub \
-lsysPrxForUser_export_stub \
-lvsh_export_stub \
-lvshcommon_export_stub \
-lsysutil_music_stub -lsysutil_search_stub \
-lpaf_export_stub \
-lvshmain_export_stub \
-lvshtask_export_stub \
-lsdk_export_stub \
-lpngdec_ppuonly_export_stub \
-lxsetting_export_stub \
-lvshnet_export_stub \
-lnetctl_main_export_stub \
-lntfs_prx -lfatfs \
-lmd5
PPU_CFLAGS += -Os -ffunction-sections -fdata-sections \
-fno-builtin-printf -nodefaultlibs -std=gnu99 \
-Wno-shadow -Wno-unused-parameter \
-Wno-format-nonliteral
PPU_CFLAGS += -Wno-bad-function-cast
#PPU_CFLAGS += -finline-limit=20
ifeq ($(BUILD_TYPE), debug)
PPU_CFLAGS += -DDEBUG -DDEBUG_FILE
endif
all:
$(MAKE) $(PPU_OBJS_DEPENDS)
$(PPU_PRX_STRIP) --strip-debug --strip-section-header $(PPU_PRX_TARGET)
scetool -0 SELF -1 TRUE -s FALSE -2 0A -3 1070000052000001 -4 01000002 -5 APP -6 0003004000000000 -A 0001000000000000 --self-ctrl-flags 4000000000000000000000000000000000000000000000000000000000000002 -e $(PPU_PRX_TARGET) $(PPU_SPRX_TARGET)
include $(CELL_MK_DIR)/sdk.target.mk