aboutsummaryrefslogtreecommitdiff
path: root/backends/psp/Makefile
diff options
context:
space:
mode:
authorJoost Peters2005-09-11 13:56:39 +0000
committerJoost Peters2005-09-11 13:56:39 +0000
commit43ec42e9e199137691ea39220be72badaa499341 (patch)
tree797f2b4c8b6e92c38dab54ca9178ba566b388b29 /backends/psp/Makefile
parent7a4ea49687b6843fb005de8163c183e6a8dd3e76 (diff)
downloadscummvm-rg350-43ec42e9e199137691ea39220be72badaa499341.tar.gz
scummvm-rg350-43ec42e9e199137691ea39220be72badaa499341.tar.bz2
scummvm-rg350-43ec42e9e199137691ea39220be72badaa499341.zip
- Enable HE SCUMM games
- Create 1.00 (default) and 1.50/kxploit EBOOT.PBP - Add eboot graphics by Chris Eskildsen, used with his permission. svn-id: r18806
Diffstat (limited to 'backends/psp/Makefile')
-rw-r--r--backends/psp/Makefile37
1 files changed, 32 insertions, 5 deletions
diff --git a/backends/psp/Makefile b/backends/psp/Makefile
index 33196735cb..adbbd5a9e3 100644
--- a/backends/psp/Makefile
+++ b/backends/psp/Makefile
@@ -4,7 +4,6 @@
#control build
DISABLE_SCALERS = true
DISABLE_HQ_SCALERS = true
-DISABLE_HE = true
DISABLE_KYRA = true
srcdir = ../..
@@ -23,6 +22,8 @@ RANLIB = psp-ranlib
STRIP = psp-strip
MKDIR = mkdir -p
RM = rm -f
+MKSFO = mksfo
+PACK_PBP = pack-pbp
INCDIR = ../../
@@ -58,7 +59,7 @@ LIBS += -lz -lm `$(PSPBIN)/sdl-config --libs` -lc -lpspgu -lpspctrl -lpspkernel
CXXFLAGS := $(CFLAGS) $(CXXFLAGS) -fno-exceptions -fno-rtti
ASFLAGS := $(CFLAGS) $(ASFLAGS)
-TARGET = scummvm-psp.elf
+TARGET = scummvm-psp
OBJS := psp_main.o \
psp_fs.o \
osys_psp.o \
@@ -73,9 +74,35 @@ MODULE_DIRS += .
include $(srcdir)/Makefile.common
-all: $(TARGET)
- $(STRIP) $(TARGET)
+PSP_EBOOT_SFO = param.sfo
+PSP_EBOOT_TITLE = ScummVM-PSP
+PSP_EBOOT = EBOOT.PBP
+PSP_EBOOT_ICON = icon0.png
+PSP_EBOOT_ICON1 = NULL
+PSP_EBOOT_PIC0 = pic0.png
+PSP_EBOOT_PIC1 = pic1.png
+PSP_EBOOT_SND0 = NULL
+PSP_EBOOT_PSAR = NULL
-$(TARGET): $(OBJS)
+all: $(PSP_EBOOT)
+
+$(TARGET).elf: $(OBJS)
$(LINK.cpp) $(OBJS) $(LIBS) -o $@
+ $(STRIP) $@
+
+$(PSP_EBOOT_SFO):
+ $(MKSFO) '$(PSP_EBOOT_TITLE)' $@
+
+$(PSP_EBOOT): $(TARGET).elf $(PSP_EBOOT_SFO)
+ $(PACK_PBP) $@ $(PSP_EBOOT_SFO) $(PSP_EBOOT_ICON) $(PSP_EBOOT_ICON1) \
+ $(PSP_EBOOT_PIC0) $(PSP_EBOOT_PIC1) $(PSP_EBOOT_SND0) \
+ $(TARGET).elf $(PSP_EBOOT_PSAR)
+
+kxploit: $(TARGET).elf $(PSP_EBOOT_SFO)
+ mkdir -p "$(TARGET)"
+ $(STRIP) $(TARGET).elf -o $(TARGET)/$(PSP_EBOOT)
+ mkdir -p "$(TARGET)%"
+ $(PACK_PBP) "$(TARGET)%/$(PSP_EBOOT)" $(PSP_EBOOT_SFO) $(PSP_EBOOT_ICON) \
+ $(PSP_EBOOT_ICON1) $(PSP_EBOOT_PIC0) $(PSP_EBOOT_PIC1) \
+ $(PSP_EBOOT_SND0) NULL $(PSP_EBOOT_PSAR)