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
Rinnegatamante 89e64032ec First commit.
First commit.
2016-10-17 22:27:03 +02:00

27 lines
602 B
Makefile

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."