-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.psp
51 lines (38 loc) · 1.44 KB
/
Makefile.psp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 $@ $<