Subversion Repositories psp

[/] [trunk/] [caprice32/] [Makefile.psp] - Rev 201

Compare with Previous | Blame | View Log

PSPSDK=$(shell psp-config --pspsdk-path)

PSPAPP=psp
PSPLIB=$(PSPAPP)/mypsp
DATA=$(PSPAPP)/data
MINIZIP=minizip

PSP_APP_NAME=Caprice32 PSP
PSP_APP_VER=4.2.0.2

TARGET=cpc32psp
EXTRA_TARGETS=EBOOT.PBP
PSP_EBOOT_TITLE=$(PSP_APP_NAME) $(PSP_APP_VER)
PSP_EBOOT_ICON=$(DATA)/caprice-icon.png

BUILD_APP=z80.o fdc.o tape.o psg.o 4.1.0/crtc.o
BUILD_PSPAPP=$(PSPAPP)/main.o $(PSPAPP)/emulate.o $(PSPAPP)/menu.o \
             $(PSPAPP)/cap32_psp.o
BUILD_MINIZIP=$(MINIZIP)/ioapi.o $(MINIZIP)/unzip.o $(MINIZIP)/zip.o

OBJS=$(BUILD_APP) $(BUILD_PSPAPP) $(BUILD_MINIZIP)

DEFINES=-DLSB_FIRST -DALIGN_DWORD -DCRTC_4_1_0
BASE_DEFS=-DPSP -DPSP_APP_VER=\"$(PSP_APP_VER)\" -DPSP_APP_NAME="\"$(PSP_APP_NAME)\""
CFLAGS=-O3 -G0 -Wall $(BASE_DEFS) $(DEFINES) -funroll-loops -ffast-math \
                         -fomit-frame-pointer -fno-strength-reduce -finline-functions -s
CXXFLAGS=$(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS=$(CFLAGS)
INCDIR=$(PSPLIB) . $(MINIZIP)
LIBDIR=$(PSPLIB)
LIBS=-lmypsp -lpng -lm -lstdc++ -lc -lz -lpspgu -lpsppower -lpspaudio -lpsprtc

include $(PSPSDK)/lib/build.mak

z80.o: z80.c z80.h cap32.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

crtc.o: crtc.c cap32.h crtc.h z80.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

4.1.0/crtc.o: 4.1.0/crtc.c cap32.h 4.1.0/crtc.h z80.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

fdc.o: fdc.c cap32.h z80.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

tape.o: tape.c cap32.h tape.h z80.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

psg.o: psg.c cap32.h z80.h
        psp-g++ $(CXXFLAGS) -c -o $@ $<

Compare with Previous | Blame | View Log