CC=psp-gcc
AS=psp-as

# GTA.BIN is edisoncarter's original
# GTA.OUT has the new exploit added

all:	exploit.bin GTA.OUT

exploit.bin: exploit.o
	psp-ld -s --section-start .text=0 -e 0 --oformat binary -o $@ $<

clean:
	rm -f *~ *.o *.s *.elf *.bin GTA.OUT

GTA.OUT: GTA.BIN exploit.bin insert.pl
	cp -f GTA.BIN GTA.OUT
	perl insert.pl GTA.OUT exploit.bin