release: all
	./psp-packer.exe game_categories.prx
	bin2c game_categories.prx ../updater/game_categories.c game_categories
	sed -i 's#static##gi' ../updater/game_categories.c

TARGET = game_categories
OBJS = main.o kernel.o user.o SysMemForKernel.o

INCDIR = ../include
CFLAGS = -Os -G0 -Wall -fno-pic
ASFLAGS = $(CFLAGS)

BUILD_PRX = 1
PRX_EXPORTS = exports.exp

USE_KERNEL_LIBS = 1
USE_KERNEL_LIBC = 1

LIBDIR = ../lib
LDFLAGS = -mno-crt0 -nostartfiles
LIBS = -lpspsystemctrl_kernel

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