-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.vita
40 lines (30 loc) · 966 Bytes
/
Makefile.vita
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
TITLE_ID = VITALI000
TARGET = vitali
OBJS = console.o draw.o font_data.o puff.o zrif.o vitali.o
LIBS = -lc -lsqlite -lSceSqlite_stub -lSceDisplay_stub \
-lSceGxm_stub -lSceCtrl_stub -lSceAppUtil_stub \
-lSceIofilemgr_stub -lSceSysmodule_stub -lSceNet_stub \
-lSceNetCtl_stub -lSceHttp_stub -lSceSsl_stub \
-lSceRtc_stub -lcurl -lssl -lcrypto -lz
PREFIX = arm-vita-eabi
CC = $(PREFIX)-gcc
CFLAGS = -Wl,-q -Wall -O3
ASFLAGS = $(CFLAGS)
all: $(TARGET).vpk
debug: CFLAGS += -DSHOW_DEBUG=1
debug: all
%.vpk: eboot.bin
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "$(TARGET)" param.sfo
vita-pack-vpk -s param.sfo -b eboot.bin $@
eboot.bin: $(TARGET).velf
vita-make-fself -c $< $@
%.velf: %.elf
arm-vita-eabi-strip -g $<
vita-elf-create $< $@
$(TARGET).elf: $(OBJS)
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
install: eboot.bin
@cp -v eboot.bin /g/app/$(TITLE_ID)/
clean:
@rm -rf $(TARGET).vpk $(TARGET).velf $(TARGET).elf $(OBJS) \
eboot.bin param.sfo