-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.psp
57 lines (46 loc) · 1.36 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
52
53
54
55
56
PSPSDK=$(shell psp-config --pspsdk-path)
PSPAPP=PSP
PSPLIB=$(PSPAPP)/psplib
MZLIB=$(PSPAPP)/minizip
PSP_FW_VERSION=200
export PSP_FW_VERSION
PSP_APP_NAME=Potator PSP
PSP_APP_VER=1.0.6
TARGET=potator
EXTRA_TARGETS=EBOOT.PBP
PSP_EBOOT_TITLE=$(PSP_APP_NAME) $(PSP_APP_VER)
PSP_EBOOT_ICON=$(PSPAPP)/potator-icon.png
POTAROOT=common
BUILD_EMUL=\
$(POTAROOT)/controls.o \
$(POTAROOT)/gpu.o \
$(POTAROOT)/memorymap.o \
$(POTAROOT)/sound.o \
$(POTAROOT)/timer.o \
$(POTAROOT)/watara.o \
$(POTAROOT)/m6502/m6502.o
BUILD_PORT=\
$(PSPAPP)/emulate.o \
$(PSPAPP)/menu.o \
$(PSPAPP)/main.o
OBJS=$(BUILD_EMUL) $(BUILD_PORT)
DEFINES=-DWORD="unsigned short" -DBYTE="unsigned char" -D__int64=long \
-DSOUND_BUFFER_SIZE=368 -DSV_USE_FLOATS
BASE_DEFS=-DPSP -DPSP_APP_VER=\"$(PSP_APP_VER)\" -DPSP_APP_NAME="\"$(PSP_APP_NAME)\""
CFLAGS=-O2 -G0 -Wall $(BASE_DEFS) $(DEFINES)
CXXFLAGS=$(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS=$(CFLAGS)
INCDIR=$(PSPLIB) $(MZLIB) $(PSPAPP) $(POTAROOT)/m6502 $(POTAROOT)
LIBDIR=$(PSPLIB) $(MZLIB)
LIBS=-lpsplib -lpng -lpspgu -lpsppower -lminizip \
-lz -lm -lc -lpspaudio -lpsprtc -lpspwlan -lpspnet_adhoc \
-lpspnet_adhocctl -lpspnet_adhocmatching
all: build_libs
clean: clean_libs
include $(PSPSDK)/lib/build.mak
build_libs:
$(MAKE) -C $(PSPLIB) all
$(MAKE) -C $(MZLIB) all
clean_libs:
$(MAKE) -C $(PSPLIB) clean
$(MAKE) -C $(MZLIB) clean