Browse Source

final src and Makefile adjustments for PSP release

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@298 be3aeb3a-fb24-0410-a615-afba39da0efa
notaz 16 years ago
parent
commit
8b99ab90aa

+ 3 - 0
Pico/Draw_amips.s

@@ -1,5 +1,8 @@
 # vim:filetype=mips
 
+# several drawing related functions for Allegrex MIPS
+# (c) Copyright 2007, Grazvydas "notaz" Ignotas
+# All Rights Reserved
 
 .set noreorder # don't reorder any instructions
 .set noat      # don't use $at

+ 4 - 0
Pico/Misc_amips.s

@@ -1,5 +1,9 @@
 # vim:filetype=mips
 
+# Some misc routines for Allegrex MIPS
+# (c) Copyright 2007, Grazvydas "notaz" Ignotas
+# All Rights Reserved
+
 .set noreorder
 .set noat
 

+ 3 - 0
Pico/PicoFrameHints.c

@@ -1,3 +1,6 @@
+// common code for Pico.c and cd/Pico.c
+// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+
 #define CYCLES_M68K_LINE     488 // suitable for both PAL/NTSC
 #define CYCLES_M68K_VINT_LAG  68
 #define CYCLES_M68K_ASD      148

+ 1 - 1
Pico/cd/LC89510.c

@@ -1,6 +1,6 @@
 /***********************************************************
  *                                                         *
- * This source was taken from the Gens project             *
+ * This source file was taken from the Gens project        *
  * Written by Stéphane Dallongeville                       *
  * Copyright (c) 2002 by Stéphane Dallongeville            *
  * Modified/adapted for PicoDrive by notaz, 2007           *

+ 1 - 1
Pico/cd/cd_sys.c

@@ -1,6 +1,6 @@
 /***********************************************************
  *                                                         *
- * This source was taken from the Gens project             *
+ * This source file was taken from the Gens project        *
  * Written by Stéphane Dallongeville                       *
  * Copyright (c) 2002 by Stéphane Dallongeville            *
  * Modified/adapted for PicoDrive by notaz, 2007           *

+ 3 - 0
Pico/sound/mix.c

@@ -1,3 +1,6 @@
+// some code for sample mixing
+// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
+
 #define MAXOUT		(+32767)
 #define MINOUT		(-32768)
 

+ 4 - 4
cpu/fame/famec.c

@@ -16,11 +16,11 @@
 
 // Options //
 #define FAMEC_ROLL_INLINE
-//#define FAMEC_EMULATE_TRACE
-//#define FAMEC_CHECK_BRANCHES
-//#define FAMEC_EXTRA_INLINE
+#define FAMEC_EMULATE_TRACE
+#define FAMEC_CHECK_BRANCHES
+#define FAMEC_EXTRA_INLINE
 // #define FAMEC_DEBUG
-//#define FAMEC_NO_GOTOS
+#define FAMEC_NO_GOTOS
 #define FAMEC_ADR_BITS  24
 // #define FAMEC_FETCHBITS 8
 #define FAMEC_DATABITS  8

+ 15 - 4
platform/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
 

+ 5 - 0
platform/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 <sys/stat.h>
 #include <sys/types.h>
 #include <sys/syslimits.h> // PATH_MAX

+ 5 - 0
platform/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 <string.h>
 #include "psp.h"
 #include "emu.h"

+ 1 - 1
platform/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.

+ 5 - 0
platform/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 <stdio.h>
 #include <string.h>
 

+ 5 - 0
platform/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 <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>

+ 5 - 0
platform/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 <pspctrl.h>
 
 void psp_init(void);