forked from qberty1337/DratiniFS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 893 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 893 Bytes
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
TARGET = psp_exfat_flash
OBJS = src/main.o src/es.o src/iofilemgr_kernel.o src/kernel_stubs.o exports.o
BUILD_PRX = 1
PRX_EXPORTS = exports.exp
# kernel mode module replaces fatms as the ms0: filesystem driver
USE_KERNEL_LIBC = 1
# NOT using USE_KERNEL_LIBS — we provide ALL kernel stubs ourselves in
# iofilemgr_kernel.S + kernel_stubs.S to avoid the "stubs out of order"
# import table corruption that -lpspkernel causes when mixed with our stubs.
PSP_FW_VERSION = 661
INCDIR = shared
CFLAGS = -O2 -G0 -Wall -Wextra -fno-strict-aliasing -fno-builtin
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS = -nostdlib -lpspdebug -lpspctrl_driver -lpspmodinfo -lpspsdk -lgcc
PSPSDK = $(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
# deploy as plain PRX to flash0:/kd/fatms.prx.
all: $(TARGET).prx
cp $(TARGET).prx fatms.prx