From 63b796cabb7d484d648755810f79bebc8f0fd689 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 17 Nov 2007 22:13:35 +0000 Subject: [PATCH] final src and Makefile adjustments for PSP release git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@298 be3aeb3a-fb24-0410-a615-afba39da0efa --- psp/Makefile | 19 +++++++++++++++---- psp/emu.c | 5 +++++ psp/main.c | 5 +++++ psp/menu.c | 2 +- psp/mp3.c | 5 +++++ psp/psp.c | 5 +++++ psp/psp.h | 5 +++++ 7 files changed, 41 insertions(+), 5 deletions(-) diff --git a/psp/Makefile b/psp/Makefile index d990ba6..d18c332 100644 --- a/psp/Makefile +++ b/psp/Makefile @@ -11,8 +11,6 @@ amalgamate = 0 CFLAGS += -I../.. -I. -DNO_SYNC CFLAGS += -Wall -Winline -G0 #CFLAGS += -DLPRINTF_STDIO -#CFLAGS += -fprofile-generate -#CFLAGS += -fprofile-use #CFLAGS += -pg ifeq ($(DEBUG),) CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math @@ -109,7 +107,11 @@ AS := psp-as ../../Pico/Memory.o : ../../Pico/Memory.c @echo ">>>" $< - $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS + $(CC) $(CFLAGS) -O2 -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS + +../../Pico/cd/Memory.o : ../../Pico/cd/Memory.c + @echo ">>>" $< + $(CC) $(CFLAGS) -O2 -c $< -o $@ ../../Pico/Draw.o : ../../Pico/Draw.c @echo ">>>" $< @@ -119,6 +121,10 @@ AS := psp-as @echo ">>>" $< $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS +../../Pico/cd/gfx_cd.o : ../../Pico/cd/gfx_cd.c + @echo ">>>" $< + $(CC) $(CFLAGS) -O2 -c $< -o $@ + readme.txt: ../../tools/textfilter ../base_readme.txt ../../tools/textfilter ../base_readme.txt $@ PSP @@ -142,6 +148,7 @@ up: EBOOT.PBP # cleanup myclean: + $(RM) PicoDrive.map make -C ../../cpu/musashi clean @@ -158,5 +165,9 @@ endif # ? rel: EBOOT.PBP readme.txt - zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt + mkdir -p PicoDrive/skin/ + cp $^ PicoDrive/ + cp skin/* PicoDrive/skin/ + zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive + rm -rf PicoDrive diff --git a/psp/emu.c b/psp/emu.c index 9fc890c..aaa5a0e 100644 --- a/psp/emu.c +++ b/psp/emu.c @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include #include #include // PATH_MAX diff --git a/psp/main.c b/psp/main.c index ffbc761..bad56a9 100644 --- a/psp/main.c +++ b/psp/main.c @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include #include "psp.h" #include "emu.h" diff --git a/psp/menu.c b/psp/menu.c index f8ba4d7..996f687 100644 --- a/psp/menu.c +++ b/psp/menu.c @@ -1,4 +1,4 @@ -// (c) Copyright 2006,2007 notaz, All rights reserved. +// (c) Copyright 2007 notaz, All rights reserved. // Free for non-commercial use. // For commercial use, separate licencing terms must be obtained. diff --git a/psp/mp3.c b/psp/mp3.c index 5991063..ce12788 100644 --- a/psp/mp3.c +++ b/psp/mp3.c @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include #include diff --git a/psp/psp.c b/psp/psp.c index b7c8693..99b9084 100644 --- a/psp/psp.c +++ b/psp/psp.c @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include #include #include diff --git a/psp/psp.h b/psp/psp.h index 7f2d70d..d4a3d0e 100644 --- a/psp/psp.h +++ b/psp/psp.h @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include void psp_init(void); -- 2.39.5