Compiling Beats Of Rage

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

Moderators: cheriff, TyRaNiD

Post Reply
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Compiling Beats Of Rage

Post by SamuraiX »

I've downloaded the psp port of Beats Of Rage (bor001src.zip). However, It does not include the make file for PSP. Has anyone else compiled this port?

I know there are still problems in my Makefile but maybe someone can take a look at this...

Code: Select all

TARGET = bor
INCDIR = psp generic sdl

CFLAGS= -O3 -Wall -fstrict-aliasing -ffast-math \
	-DINLINE="static inline" -DLOWERCASEFILES \

CFLAGS += $(shell $(PSPBIN)/sdl-config --cflags)	

PSPBIN = $(PSPSDK)/../bin

CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
USE_PSPSDK_LIBC=1
LIBS = -lm -lpspaudio -lpspgu -lpsppower -lz -lSDLmain

EXTRA_TARGETS = EBOOT.PBP
EXTRA_CLEAN = pspclean
PSP_EBOOT_TITLE = "BOR"
PSP_EBOOT_ICON = data/icon0.png
PSP_EBOOT_PIC1 = data/pic1.png
PSP_EBOOT_SND0 = data/snd0.at3

# Object files
MAINOBJS = adpcm.o anigif.o bitmap.o bor.o draw.o font.o loadimg.o \
	   packfile.o palette.o savepcx.o screen.o soundmix.o sprite.o \
	   spriteq.o ssprite.o texture.o psp/mylib.o generic/rand32.o \
	   psp/timer.o generic/asmcopy.o psp/control.o psp/sblaster.o \
	   psp/video.o $(RES)


OBJS= $(MAINOBJS)

# Rules to make libraries

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

.PHONY: all all-before all-after clean clean-custom

all: all-before bor.exe all-after


clean: clean-custom
	${RM} $(OBJS) $(BIN)

$(BIN): $(LINKOBJ)
	$(CC) $(LINKOBJ) -o "bor.exe" $(LIBS) $(LDFLAGS)

.c.o:
	$&#40;CC&#41; -c $&#40;CFLAGS&#41; $< -o $@

pspclean&#58;
		@rm -rf obj

obj/%.o&#58;	src/%.c
		$&#40;CC&#41; $&#40;CDEFS&#41; $&#40;CFLAGS&#41; -c $< -o$@

obj/%.a&#58;
		$&#40;AR&#41; -r $@ $^

I also find that there are redefinitions of functions in syscall.h that are already included in the pspSDK.

Thank You.
Post Reply