-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
53 lines (43 loc) · 1.01 KB
/
makefile
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
TARGET = devhook
OBJS = \
src/crt0_prx.o \
src/main.o \
src/patch.o \
src/registry.o \
src/anyumd.o \
src/umd_emu.o \
src/hook_dev.o \
src/msboot.o \
src/fileio.o \
src/ramdisk.o \
src/flash_em.o \
src/ms_share.o \
src/clock.o \
src/psp_uart.o \
src/vsprintf.o \
src/stubkk.o \
src/setk1.o
# Define to build this as a prx (instead of a static elf)
BUILD_PRX=1
# Define the name of our custom exports (minus the .exp extension)
PRX_EXPORTS=src/exports.exp
#when choice this boot 2.80 but hang on X
USE_KERNEL_LIBS = 1
USE_KERNEL_LIBC = 1
#USE_PSPSDK_LIBC = 1
INCDIR =
CFLAGS = -O2 -Os -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
#LIBS = -lpspumd -lpsppower
LIBS = -lpsppower
LDFLAGS = -nostdlib -nodefaultlibs
#EXTRA_TARGETS = EBOOT.PBP
#PSP_EBOOT_TITLE = PSP DEVHOOK
#PSP_EBOOT_ICON = icon0.png
#PSP_EBOOT_UNKPNG = pic1.png
PSPSDK=$(shell psp-config --pspsdk-path)
include build.mak
#include $(PSPSDK)/lib/build.mak
#LIBS += -lpsphprm_driver