diff options
author | Joost Peters | 2005-08-16 17:15:37 +0000 |
---|---|---|
committer | Joost Peters | 2005-08-16 17:15:37 +0000 |
commit | bc394b6ea3468b5d84294f1dfc9ad23e87333281 (patch) | |
tree | 0ca64021186b44889c8b5251da2aa4616b008acd /backends/psp/Makefile | |
parent | 8cbdf0e6295fd31b2a355fdb4c7bdc84176c1b48 (diff) | |
download | scummvm-rg350-bc394b6ea3468b5d84294f1dfc9ad23e87333281.tar.gz scummvm-rg350-bc394b6ea3468b5d84294f1dfc9ad23e87333281.tar.bz2 scummvm-rg350-bc394b6ea3468b5d84294f1dfc9ad23e87333281.zip |
Added: PSP backend
svn-id: r18696
Diffstat (limited to 'backends/psp/Makefile')
-rw-r--r-- | backends/psp/Makefile | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/backends/psp/Makefile b/backends/psp/Makefile new file mode 100644 index 0000000000..33196735cb --- /dev/null +++ b/backends/psp/Makefile @@ -0,0 +1,81 @@ +# SCUMMVM-PSP MakeFile +# $Header$ + +#control build +DISABLE_SCALERS = true +DISABLE_HQ_SCALERS = true +DISABLE_HE = true +DISABLE_KYRA = true + +srcdir = ../.. +VPATH = $(srcdir) +HAVE_GCC3 = false + +PSPSDK=$(shell psp-config --pspsdk-path) +PSPBIN = $(PSPSDK)/../bin +LDFLAGS = + +CXX = psp-g++ +AS = psp-gcc +LD = psp-g++ +AR = psp-ar cru +RANLIB = psp-ranlib +STRIP = psp-strip +MKDIR = mkdir -p +RM = rm -f + +INCDIR = ../../ + +#check PSPSDK presence +ifeq ($(PSPSDK),) +$(error $$(PSPSDK) is undefined. Use "PSPSDK := $$(shell psp-config --pspsdk-path)" in your Makefile) +endif + +# Add in PSPSDK includes and libraries. +INCDIR := $(INCDIR) . $(PSPSDK)/include +LIBDIR := $(LIBDIR) . $(PSPSDK)/lib + +CFLAGS = -O2 -G0 -Wall -D__PSP__ -DNONSTANDARD_PORT -DUSE_ZLIB -Wno-multichar `$(PSPBIN)/sdl-config --cflags` +CFLAGS := $(addprefix -I,$(INCDIR)) $(CFLAGS) +LDFLAGS := $(addprefix -L,$(LIBDIR)) $(LDFLAGS) +LIBS = + +#comment this out if you don't want to use libmad +CFLAGS += -DUSE_MAD +LIBS += -lmad + +#comment this out if you don't want to use libtremor +CFLAGS += -DUSE_TREMOR +LIBS += -lvorbisidec + +#comment this out if you don't want to use libmpeg2 +CFLAGS += -DUSE_MPEG2 +LIBS += -lmpeg2 + +LIBS += -lz -lm `$(PSPBIN)/sdl-config --libs` -lc -lpspgu -lpspctrl -lpspkernel -lpspuser + + +CXXFLAGS := $(CFLAGS) $(CXXFLAGS) -fno-exceptions -fno-rtti +ASFLAGS := $(CFLAGS) $(ASFLAGS) + +TARGET = scummvm-psp.elf +OBJS := psp_main.o \ + psp_fs.o \ + osys_psp.o \ + osys_psp_gu.o \ + kbd_ss_c.o \ + kbd_s_c.o \ + kbd_ls_c.o \ + kbd_l_c.o \ + trace.o + +MODULE_DIRS += . + +include $(srcdir)/Makefile.common + +all: $(TARGET) + $(STRIP) $(TARGET) + +$(TARGET): $(OBJS) + $(LINK.cpp) $(OBJS) $(LIBS) -o $@ + |