Update all samples to new requirements, and expose a makefile to compile all of them

This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-13 16:56:29 +01:00
parent 6e80c9bd29
commit 0a803b844d
86 changed files with 186 additions and 114 deletions

View File

@@ -84,10 +84,6 @@ SAMPLES = \
wlan \
exceptions
# FIXME: This workaround is actually needed to get the stage1 installation
# without samples working. Once a better way to do header installation for
# newlib is figured out, this can be rewritten.
all:
# Install all of the samples. Rename any files that end in a .sample extension.

View File

@@ -0,0 +1,88 @@
SAMPLES = \
audio/polyphonic \
audio/wavegen \
controller/basic \
debug/exception \
debug/kprintf \
debug/prxdecrypt \
debug/profiler \
debug/debugkb \
debug/sio \
debug/gdb \
gu/beginobject \
gu/blend \
gu/blit \
gu/celshading \
gu/clut \
gu/copy \
gu/cube \
gu/envmap \
gu/integerdrawing \
gu/lights \
gu/lines \
gu/logic \
gu/morph \
gu/morphskin \
gu/ortho \
gu/reflection \
gu/rendertarget \
gu/shadowprojection \
gu/signals \
gu/skinning \
gu/speed \
gu/spharm \
gu/splinesurface \
gu/sprite \
gu/text \
gu/timing \
gu/vertex \
gu/zbufferfog \
ir/sircs \
ir/irda \
kernel/kdumper \
kernel/loadmodule \
kernel/threadstatus \
kernel/cwd \
kernel/fileio \
kernel/idstorage \
kernel/messagebox \
kernel/registry \
kernel/regenum \
kernel/systimer \
kernel/sysevent \
mp3 \
ms/callback \
nand/dumpipl \
net/simple \
net/simple_prx \
net/resolver \
net/wlanscan \
net/wlanscan_elf \
power \
prx/prx_loader \
prx/testprx \
savedata/utility \
savedata/decrypt \
savedata/encrypt \
template/elf_template \
template/prx_template \
template/lib_template \
template/kprx_template \
usb/storage \
utility/gamesharing \
utility/htmlviewer \
utility/netconf \
utility/netdialog \
utility/msgdialog \
utility/systemparam \
utility/osk \
me/basic \
wlan \
exceptions
all:
for sample in $(SAMPLES) ; do \
$(MAKE) -f Makefile.sample -C $$sample clean all || break; \
done

View File

@@ -2,7 +2,7 @@ TARGET = polyphonic
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = alsample
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -64,7 +64,7 @@ int setupCallbacks(void) {
const float PI = 3.1415926535897932f;
const int sampleRate = 44100;
float frequency = 440.0f;
float time = 0;
float currentTime = 0;
int function = 0;
typedef struct {
@@ -107,17 +107,17 @@ void audioCallback(void* buf, unsigned int length, void *userdata) {
int i;
if (frequency != freq0) {
time *= (freq0 / frequency);
currentTime *= (freq0 / frequency);
}
for (i = 0; i < length; i++) {
short s = (short) (scaleFactor * currentFunction(2.0f * PI * frequency * time));
short s = (short) (scaleFactor * currentFunction(2.0f * PI * frequency * currentTime));
ubuf[i].l = s;
ubuf[i].r = s;
time += sampleLength;
currentTime += sampleLength;
}
if (time * frequency > 1.0f) {
if (currentTime * frequency > 1.0f) {
double d;
time = modf(time * frequency, &d) / frequency;
currentTime = modf(currentTime * frequency, &d) / frequency;
}
freq0 = frequency;
}

View File

@@ -2,7 +2,7 @@ TARGET = controller_basic
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -3,7 +3,7 @@ OBJS = main.o
LIBS = -lpspdebugkb
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = exception
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -1,10 +1,8 @@
TARGET = gdb
OBJS = main.o
USE_PSPSDK_LIBC = 1
INCDIR =
CFLAGS = -O0 -G0 -Wall -ggdb
CFLAGS = -O0 -Wall -ggdb
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = kptest
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = profiler
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = prxdecrypt
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -1,10 +1,8 @@
TARGET = sio
OBJS = main.o
USE_PSPSDK_LIBC = 1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -3,7 +3,7 @@ OBJS = main.o
LIBS = -lstdc++
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-rtti -fexceptions
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = beginobject
OBJS = beginobject.o ../common/callbacks.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = blend
OBJS = blend.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = blit
OBJS = blit.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = celshading
OBJS = lightmap.o celshading.o ../common/callbacks.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = clut
OBJS = clut.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -184,7 +184,7 @@ int SetupCallbacks(void)
{
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x18, 0xFA0, 0, 0);
if(thid >= 0)
{
sceKernelStartThread(thid, 0, 0);

View File

@@ -2,7 +2,7 @@ TARGET = copy
OBJS = copy.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = cube
OBJS = cube.o logo.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = envmap
OBJS = envmap.o env0.o ../common/callbacks.o ../common/geometry.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = integerdrawing
OBJS = integerdrawing.o ../common/callbacks.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = lights
OBJS = lights.o ../common/callbacks.o ../common/geometry.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = lines
OBJS = lines.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = logic
OBJS = logic.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = MIPMAPPING
OBJS = mipmapping.o mip0.o mip1.o mip2.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = morph
OBJS = morph.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = morphskin
OBJS = morphskin.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -4,7 +4,7 @@ PSPDIR=$(shell psp-config --psp-prefix)
TARGET = ortho
OBJS = ortho.o ../common/callbacks.o ../common/vram.o
CFLAGS = -O2 -G0 -Wall -g
CFLAGS = -O2 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = reflection
OBJS = reflection.o logo.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = rendertarget
OBJS = rendertarget.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = shadowprojection
OBJS = shadowprojection.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = signals
OBJS = signals.o ball.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = skinning
OBJS = skinning.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
@@ -14,5 +14,4 @@ EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Matrix Skinning Sample
PSPSDK=$(shell psp-config --pspsdk-path)
USE_PSPSDK_LIBC=1
include $(PSPSDK)/lib/build.mak

View File

@@ -2,7 +2,7 @@ TARGET = speed
OBJS = speed.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = spharm
OBJS = cube.o spharm.o disablefpu.o mt19937.o logo.o logo2.o logo3.o
INCDIR =
CFLAGS = -G0 -Wall -fno-exceptions
CFLAGS = -Wall -fno-exceptions
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = splinesurface
OBJS = splinesurface.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = sprite
OBJS = sprite.o ball.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = gufont
OBJS = font.c main.o
INCDIR =
CFLAGS = -G0 -Wall -O2
CFLAGS = -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = timing
OBJS = timing.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = vertex
OBJS = vertex.o ../common/callbacks.o ../common/vram.o ../common/menu.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = zbufferfog
OBJS = zbufferfog.o ../common/callbacks.o ../common/geometry.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = irda
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = sircs
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = cwd
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -22,6 +22,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/unistd.h>
#include <sys/param.h>
PSP_MODULE_INFO("CwdTest", 0, 1, 1);

View File

@@ -2,7 +2,7 @@ TARGET = dumper
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -1,7 +1,7 @@
TARGET = idstorage
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = kdumper
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = loadmodule
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = messagebox
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = regsh
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = regsample
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = sysevent
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = systimer
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = threadstatus
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = mebasic
OBJS = main.o me.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -6,7 +6,7 @@ LIBS = -lpspaudio -lpspmp3
BUILD_PRX = 1
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -4,7 +4,7 @@ OBJS = main.o
BUILD_PRX=1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = resolver
OBJS = main.o
INCDIR =
CFLAGS = -O0 -G0 -Wall -g
CFLAGS = -O0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = netsample
OBJS = main.o
INCDIR =
CFLAGS = -O0 -G0 -Wall -g
CFLAGS = -O0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -5,7 +5,7 @@ PRX_EXPORTS=exports.exp
BUILD_PRX=1
INCDIR =
CFLAGS = -O0 -G0 -Wall -g
CFLAGS = -O0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -4,7 +4,7 @@ OBJS = main.o
BUILD_PRX=1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = wlanscan
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -1,12 +1,12 @@
PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = powersample
OBJS = main.o
OBJS = main.o
LIBS = -lpsppower
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
include $(PSPSDK)/lib/build.mak
include $(PSPSDK)/lib/build.mak

View File

@@ -1,10 +1,8 @@
TARGET = prxloader
OBJS = main.o MyLib.o
USE_PSPSDK_LIBC = 1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -6,10 +6,8 @@ BUILD_PRX=1
# Define the name of our custom exports (minus the .exp extension)
PRX_EXPORTS=exports.exp
USE_PSPSDK_LIBC = 1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = main
OBJS = main.o decrypt.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = main
OBJS = main.o encrypt.o hash.o psf.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -75,7 +75,7 @@ int find_psf_section(const char *name,
&& (sectBufLen < dataLen) && (sectBufLoc < dataLen))
{
/* Check if this is the section we want */
if (!stricmp((char *)&data[strLoc + nameLoc], name))
if (!strcasecmp((char *)&data[strLoc + nameLoc], name))
{
/* Update the location and size */
*location = &data[headLen + sectBufLoc];

View File

@@ -5,7 +5,7 @@ OBJS = main.o
#PSP_FW_VERSION = 200
#BUILD_PRX = 1
LIBS = -lpsputility -lpspgum -lpspgu -lm
LIBS = -lpspgum -lpspgu
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti

View File

@@ -2,7 +2,7 @@ TARGET = template
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -1,13 +1,11 @@
TARGET = ktemplate
OBJS = main.o
# Use the kernel's small inbuilt libc
USE_KERNEL_LIBC = 1
# Use only kernel libraries
USE_KERNEL_LIBS = 1
INCDIR =
CFLAGS = -O2 -G0 -Wall -fno-builtin-printf
CFLAGS = -O2 -Wall -fno-builtin-printf
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET_LIB = libtemplate.a
OBJS = template.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -4,7 +4,7 @@ OBJS = main.o
BUILD_PRX=1
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -3,7 +3,7 @@ PSPLIBSDIR = $(PSPSDK)/..
TARGET = usbstorage
OBJS = main.o
LIBS = -lpspusb -lpspusbstor
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -4,14 +4,14 @@ OBJS = main.o
PSP_FW_VERSION = 200
BUILD_PRX = 1
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS = -lpsputility -lpspgum -lpspgu -lm -lpspnet_adhoc -lpspnet_adhocctl -lpspnet_adhocmatching
LIBS = -lpspgum -lpspgu -lpspnet_adhoc -lpspnet_adhocctl -lpspnet_adhocmatching
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Game Sharing Sample

View File

@@ -2,7 +2,7 @@ TARGET = htmlsample
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
@@ -11,7 +11,7 @@ EXTRA_TARGETS = EBOOT.PBP
LIBDIR =
LDFLAGS =
LIBS = -lpsputility -lpsphttp -lpspssl -lpspgum -lpspgu -lm
LIBS = -lpsphttp -lpspssl -lpspgum -lpspgu
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

View File

@@ -2,12 +2,12 @@ PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = msgdialogsample
OBJS = main.o
LIBS = -lpsputility -lpspgum -lpspgu -lm
LIBS = -lpspgum -lpspgu
# Uncomment the following line to comple for custom firmware 3.xx
#BUILD_PRX = 1
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,10 +2,9 @@ PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = netconfsample
OBJS = main.o
LIBS = -lpsputility
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -6,14 +6,14 @@ PSP_FW_VERSION = 200
BUILD_PRX = 1
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS = -lpsputility -lpspgum -lpspgu -lm
LIBS = -lpspgum -lpspgu
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Net Dialog Sample

View File

@@ -2,7 +2,7 @@ TARGET = osk
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
@@ -10,7 +10,7 @@ BUILD_PRX = 1
LIBDIR =
LDFLAGS =
LIBS = -lpspgu -lpsputility
LIBS = -lpspgu
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSP OSK Sample

View File

@@ -1,12 +1,11 @@
PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = sysparamsample
OBJS = main.o
LIBS = -lpsputility
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
include $(PSPSDK)/lib/build.mak
include $(PSPSDK)/lib/build.mak

View File

@@ -5,7 +5,7 @@ OBJS = main.o
LIBS = -lpspwlan
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)