1 # Makefile for the PSP.
2 # Based on examples at psp-programming.com
6 VERSION = $(shell cat VERSION)
7 TARGET = bin/psp/psprpn
8 PSP_EBOOT = bin/psp/EBOOT.PBP
9 PSP_EBOOT_SFO = bin/psp/PARAM.SFO
16 src/Calculator.o src/Commands.o src/History.o src/Main.o \
17 src/Operators.o src/Variables.o \
19 OBJS = $(subst $(SRCDIR),$(OBJDIR),$(MYOBJS))
21 $(OBJDIR)%.o: $(SRCDIR)%.cpp
22 @echo Compiling $(notdir $<)
23 @$(CC) $(CFLAGS) $(LFLAGS) -c $< -o $@
25 # The -G0 flag fixes some oddity in the MIPS architecture.
26 CFLAGS = -O2 -G0 -Wall -DRPN_PSP -DRPN_DOUBLE
27 CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
34 EXTRA_TARGETS = $(PSP_EBOOT)
35 PSP_EBOOT_TITLE = PSPRPN v. $(VERSION)
36 PSP_EBOOT_ICON = img/psprpn3.png
38 PSPSDK = $(shell psp-config --pspsdk-path)
39 include $(PSPSDK)/lib/build.mak
41 INSTALL_DIR = /media/disk/PSP/GAME/psprpn
43 install: $(EXTRA_TARGETS)
44 $(CP) $(EXTRA_TARGETS) $(INSTALL_DIR)