89e64032ec
First commit.
27 lines
602 B
Makefile
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."
|