-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
57 lines (45 loc) · 1.65 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
TITLE_ID = TEMA00001
TARGET = TEMA
PSVITAIP = 192.168.0.0
PROJECT_TITLE := TEMA
OBJS = src/main.o src/font.o src/graphics.o src/init.o src/net.o \
src/package_installer.o src/archive.o src/file.o \
src/utils.o src/sha1.o minizip/unzip.o minizip/ioapi.o \
src/sfo.o src/vita_sqlite.o sqlite-3.6.23.1/sqlite3.o src/appdb.o
LIBS = -lSceDisplay_stub -lSceSysmodule_stub -lSceNet_stub \
-lSceNetCtl_stub -lSceHttp_stub -lSceAppMgr_stub -lSceAppUtil_stub \
-lScePower_stub libpromoter/libScePromoterUtil_stub.a -lz \
-lSceKernel_stub \
-lSceGxm_stub \
-lSceCtrl_stub \
-lScePgf_stub \
-lz \
-lm \
-lvita2d \
-lfreetype \
DEFINES = -DSQLITE_OS_OTHER=1 -DSQLITE_TEMP_STORE=3 -DSQLITE_THREADSAFE=0
PREFIX = arm-vita-eabi
CC = $(PREFIX)-gcc
CFLAGS = -Wl,-q -O3 -std=c99 $(DEFINES)
ASFLAGS = $(CFLAGS)
all: $(TARGET).vpk
$(TARGET).vpk: eboot.bin
vita-mksfoex -d PARENTAL_LEVEL=1 -s APP_VER=01.40 -s TITLE_ID=$(TITLE_ID) "$(PROJECT_TITLE)" param.sfo
vita-pack-vpk -s param.sfo -b eboot.bin -a res/icon0.png=sce_sys/icon0.png \
-a res/template.xml=sce_sys/livearea/contents/template.xml \
-a res/startup.png=sce_sys/livearea/contents/startup.png \
-a res/bg0.png=sce_sys/livearea/contents/bg0.png $@
eboot.bin: $(TARGET).velf
vita-make-fself $< eboot.bin
$(TARGET).velf: $(TARGET).elf
vita-elf-create $< $@ libpromoter/promoterutil.json
$(TARGET).elf: $(OBJS)
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
clean:
@rm -rf *.velf *.elf *.vpk $(OBJS) param.sfo eboot.bin
vpksend: $(TARGET).vpk
curl -T $(TARGET).vpk ftp://$(PSVITAIP):1337/ux0:/
@echo "Sent."
send: eboot.bin
curl -T eboot.bin ftp://$(PSVITAIP):1337/ux0:/app/$(TITLE_ID)/
@echo "Sent."