mirror of
https://github.com/joel16/VitaShell.git
synced 2024-11-23 11:49:40 +00:00
41 lines
859 B
Makefile
41 lines
859 B
Makefile
TITLE_ID = VSUPDATER
|
|
TARGET = updater
|
|
OBJS = main.o
|
|
|
|
LIBS = -lSceAppMgr_stub -lScePromoterUtil_stub -lSceSysmodule_stub
|
|
|
|
PREFIX = arm-vita-eabi
|
|
CC = $(PREFIX)-gcc
|
|
CFLAGS = -Wl,-q -Wall -O3 -marm
|
|
ASFLAGS = $(CFLAGS)
|
|
|
|
all: $(TARGET).vpk
|
|
|
|
%.vpk: eboot.bin
|
|
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "VitaShell Updater" param.sfo
|
|
vita-pack-vpk -s param.sfo -b eboot.bin $@
|
|
|
|
eboot.bin: $(TARGET).velf
|
|
vita-make-fself $< $@
|
|
|
|
%.velf: %.elf
|
|
vita-elf-create $< $@
|
|
|
|
$(TARGET).elf: $(OBJS)
|
|
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
|
|
|
|
%.o: %.png
|
|
$(PREFIX)-ld -r -b binary -o $@ $^
|
|
|
|
clean:
|
|
@rm -rf $(TARGET).vpk $(TARGET).velf $(TARGET).elf $(OBJS) \
|
|
eboot.bin param.sfo
|
|
|
|
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."
|