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

# 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 -I../../psplink
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS = -L../../libpsplink_driver -L../../libusbhostfs_driver

ifdef BUILD_PLUGIN
CFLAGS += -DBUILD_PLUGIN
OBJS += libs.o apihook.o 
endif

LIBDIR =

LIBS = -lpsppower_driver_271 -lpspctrl_driver_271 -lpsplink_driver -lusbhostfs_driver -lpspdisplay_driver_271 -lpspusb_driver

PSPSDK=$(shell psp-config --pspsdk-path)
#include $(PSPSDK)/lib/build_prx.mak
include /home/build/psplinkusb/tools/remotejoy/build_prx.mak
