Makefile Help

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
InflamedSpirit
Posts: 14
Joined: Mon Oct 03, 2005 6:51 am

Makefile Help

Post by InflamedSpirit »

When compiling a psp project with any makefile in the samples or any others ive seen, it makes a EBOOT.PBP, PARAM.SFO, main.o, and a .elf.
The eboot is packed with DATA.PSP and a PARAM.SFO

My question is can I have a custom makefile that will make the DATA.PSP not packed into the EBOOT and instead have it renamed as the EBOOT.PBP. This way I wouldn't have to use the PBP Unpacker to extract the DATA.PSP and rename that to EBOOT.PBP.

Heres the makefile I'm using:

Code: Select all

TARGET = GameName
OBJS = main.o

INCDIR = 
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LIBS=-lm
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = GameName


PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Thanks in advance!
placasoft
Posts: 53
Joined: Mon Mar 28, 2005 10:53 am

Post by placasoft »

The "*.elf" file ist the DATA.PSP ;)
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

The ELF file isn't stripped. So you can either strip it or just use "make kxploit" to create directories that can be used on 1.5.
InflamedSpirit
Posts: 14
Joined: Mon Oct 03, 2005 6:51 am

Post by InflamedSpirit »

Thanks a lot! That works great! :)
lol, I feel a little foolish now.

You said that the ELF isn't stripped, when it IS stripped what is taken away? I always figured it wasn't useful because the filesize was more than 4 times the normal eboot.
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

Post by misfire »

FYI, strip discards all symbols from object files, e.g. debugging symbols.
Post Reply