View Single Post
  #10 (permalink)  
Old 01-18-2006, 03:48 AM
Zianna123's Avatar
Zianna123 Zianna123 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 346
Points: 3.06
Donate
@ Exor use Fanjita's makefile

#### CUT HERE #####
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDEV=$(shell psp-config --pspdev-path)/bin
INCLUDE=$(PSPSDK)/include

copy-all: clean all
# This assumes that you have set up a symbolic link called /psp pointing to your memstick drive
cp tetris.bin /psp/psp/savedata/ULES00151S5/
cp tetris.bin /psp/psp/savedata/ULUS10041S5/

all:
$(PSPDEV)/psp-gcc -I $(INCLUDE) -O2 -W -Wall -G0 -fno-pic -mno-abicalls -w -S main.c -o main.s
$(PSPDEV)/psp-as main.s -o main.o
$(PSPDEV)/psp-ld --no-warn-mismatch -T psp20bin.x main.o -o main.elf -lc
$(PSPDEV)/psp-strip -s main.elf
$(PSPDEV)/psp-objcopy -O binary main.elf tetris.bin

clean:
rm -rf *~ *.o *.elf *.bin *.s *.bin

#### TILL HERE ######

now paste that into a file called makefile

asuming that the path to GTADevkit is correct (to find psp20bin.x)

type make

u will then have a file ready to run on yer psp in savegameslot 5
__________________
HTML Code:
<I HAVE NO SIG / UBAR, But if i did it would be here and it would be kewl!!, mebe even a stickman :) >
Reply With Quote