CMFileManager-PSP/fs_driver/Makefile
2022-05-31 10:57:03 -04:00

28 lines
585 B
Makefile

TARGET = fs_driver
OBJS = fs_driver.o exports.o
PRX_EXPORTS = exports.exp
# Use the kernel's small inbuilt libc
USE_KERNEL_LIBC = 1
# Use only kernel libraries
USE_KERNEL_LIBS = 1
INCDIR = ../libs/include
CFLAGS = -Os -G0 -Wall -fno-builtin-printf
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR = ../libs/lib
LDFLAGS = -nostartfiles
LIBS = -lpspsystemctrl_kernel
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
all:
psp-build-exports -s $(PRX_EXPORTS)
mv fs_driver.S "../app/drivers/"
mv fs_driver.prx "../app/data/"