blob: 7d64908c02c375f85e65594767ebd67dd81b92d6 (
plain)
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
|
title_id := VITAUINPT
version := $(shell git describe --abbrev=0 --tags --match "[0-9]*\.[0-9]*")
override CFLAGS += -std=c11
override CPPFLAGS += -D_DEFAULT_SOURCE -DVITA_UINPUT_VERSION='"$(version)"' -I../../
override LDLIBS += -lSceDisplay_stub -lSceCtrl_stub -lSceTouch_stub -lSceSysmodule_stub -lSceNetCtl_stub
all: vita-uinput.vpk
vita-uinput: vita-uinput.c screen.c
$(LINK.c) $^ $(LDLIBS) -o $@
%.velf: %
strip -g $<
vita-elf-create $< $@
%.bin: %.velf
vita-make-fself -s $< $@
%.sfo:
vita-mksfoex -s TITLE_ID=$(title_id) $(patsubst %.sfo,%,$@) $@
%.vpk: %.bin %.sfo
vita-pack-vpk -b $(word 1,$^) -s $(word 2,$^) $@
clean:
$(RM) vita-uinput
$(RM) *.vpk
.PHONY: clean
|