TARGET = remotejoy
OBJS = main.o kmode.o imports.o exports.o

BUILD_PLUGIN = 1

# Use the kernel's small inbuilt libc
USE_KERNEL_LIBC = 1
# Use only kernel libraries
USE_KERNEL_LIBS = 1

INCDIR = 
#CFLAGS = -O2 -G0 -Wall -fno-builtin-printf -DDEBUG
CFLAGS = -Os -G0 -Wall -fno-builtin-printf -I../usbhostfs_remotejoy
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS = -L../libusbhostfs_driver

ifdef BUILD_PLUGIN
CFLAGS += -DBUILD_PLUGIN
OBJS +=
endif

LIBDIR =

LIBS = -lusbhostfs_driver

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
