This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
BetterTrackPlug/plugin/Makefile

27 lines
602 B
Makefile
Raw Normal View History

2016-10-17 23:27:03 +03:00
TARGET = TrackPlug
OBJS = main.o
LIBS = -lSceAppUtil_stub -lSceAppMgr_stub -lSceFios2_stub -lSceKernel_stub -lScePower_stub -lSceLibc_stub
PREFIX = arm-vita-eabi
CC = $(PREFIX)-gcc
CFLAGS = -g -Wl,-q -Wall -O3 -nostartfiles
ASFLAGS = $(CFLAGS)
all: $(TARGET).suprx
%.suprx: %.velf
vita-make-fself $< $@
%.velf: %.elf
vita-elf-create $< $@
$(TARGET).elf: $(OBJS)
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
clean:
@rm -rf $(TARGET).suprx $(TARGET).velf $(TARGET).elf $(OBJS)
send: $(TARGET).suprx
curl -T $(TARGET).suprx ftp://$(PSVITAIP):1337/ux0:/plugins/$(TARGET).suprx
@echo "Sent."