-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommon.mak
More file actions
47 lines (34 loc) · 1.05 KB
/
Copy pathCommon.mak
File metadata and controls
47 lines (34 loc) · 1.05 KB
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
PSPSDK=$(shell psp-config --pspsdk-path)
PSPLIB=libpsp
DEFINES += -DPSP -DLSB_FIRST -DBPP16 -DSOUND -DZLIB \
-DPSP_APP_VER=\"$(PSP_APP_VER)\" -DPSP_APP_NAME="\"$(PSP_APP_NAME)\""
MINIZIP=minizip
Z80=Z80
EMULIB=EMULib
DATA=data
BUILD_Z80=$(Z80)/Z80.o $(Z80)/Debug.o
BUILD_EMULIB=$(EMULIB)/Sound.o $(EMULIB)/SndPsp.o $(EMULIB)/LibPsp.o
ifdef MINIZIP
BUILD_MINIZIP=$(MINIZIP)/ioapi.o $(MINIZIP)/unzip.o $(MINIZIP)/zip.o
DEFINES += -DMINIZIP -DBPS16
endif
INCDIR += EMULib Z80 $(PSPLIB) minizip
CFLAGS += -O2 -G0 -Wall $(DEFINES)
CXXFLAGS += $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS += $(CFLAGS)
LIBDIR += $(PSPLIB)
LIBS += -lpsplib -lpspgu -lpspaudio -lpsprtc -lpsppower -lpng -lz -lm \
-lpspwlan -lpspnet_adhoc -lpspnet_adhocctl -lpspnet_adhocmatching
EXTRA_TARGETS=EBOOT.PBP
PSP_EBOOT_TITLE=$(PSP_APP_NAME) $(PSP_APP_VER)
export PSP_FW_VERSION
all: build_psplib
clean: clean_psplib
include $(PSPSDK)/lib/build.mak
build_psplib:
cd $(PSPLIB) ; $(MAKE)
clean_psplib:
cd $(PSPLIB) ; $(MAKE) clean
ifeq ($(PSP_FW_VERSION), 150)
all: kxploit
endif