I have quite recently started with psp development and have managed to complete some tutorials. Now I want to start on my own project. One thing I like to do is to have a good structure in my project and it usualy goes something like this.
src/ (all my source files, .c, .cpp)
include/ (all .h files)
lib/ (any external library I might use)
objs/ (all built objects)
gfx/ (any graphics used in the project)
doc/ (documentation, irrelevant for the build but nice if you use doxygen or other documentation system)
(project name)/ (special folder for psp project, folder containing everything I need to play the game on my psp)
Could someone help me setting this up, I have good experience writing code but it's very lacking writing makefiles. :(
Edit:
Here is my current makefile
Code: Select all
PROJECT = project_name
TARGET = ${PROJECT}
OBJS = main.o Engine.o
INCDIR = ./include/
LIBIDR = ./lib/
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = ${PROJECT}
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak