aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4042ab4..e277580 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,18 @@ ifeq ($(config), release_ems)
libs = -lm
endif
+ifeq ($(config), release_psv)
+ compiler = arm-vita-eabi-gcc
+ tool_compiler = gcc
+ linker = arm-vita-eabi-gcc
+ conf_cflags = -DNDEBUG -Dplat_psv \
+ -Dallocation_default_alignment=4 \
+ -O3 -s
+ conf_lflags = -Wl,-q -O3
+ libs = -lSceDisplay_stub -lSceCtrl_stub -lSceAudio_stub -lSceLibDbg_stub -lm
+ postbuild = psv_postbuild
+endif
+
sources = \
animation.c \
asset.c \
@@ -131,7 +143,7 @@ objects = $(sources:%.c=%.o)
images = $(image_sources:$(int_dir)/%.bmp=$(data_dir)/%.img)
animations = $(anim_sources:$(int_dir)/%.anm=$(data_dir)/%.anm)
-all: $(target) $(pack)
+all: $(target) $(pack) $(postbuild)
$(objects): %.o : %.c | $(pack)
$(compiler) -MMD -MF $(basename $@).d $(cflags) -o $@ -c $<
@@ -164,6 +176,16 @@ $(target): $(objects)
$(data_dir):
mkdir -p $(data_dir)
+psv_postbuild: $(target)
+ vita-elf-create $(target) $(target).velf
+ vita-make-fself -s $(target).velf eboot.bin
+ vita-mksfoex -s TITLE_ID="HFTRSS001" "HFtrsS" param.sfo
+ vita-pack-vpk -s param.sfo -b eboot.bin $(target).vpk \
+ -a media/icon.png=sce_sys/icon0.png
+
+vitasend: $(target) $(psv_postbuild)
+ curl -T $(target).vpk ftp://${VITAIP}:1337/ux0:/
+
clean:
rm *.d
rm *.o