# QSF Plugin for GameMusicGear by gama
#   Based on AOSDK
#    R. Belmont and Richard Bannister.

TARGET = in_qsf

# QSF engine
QSF = eng_qsf/eng_qsf.o eng_qsf/kabuki.o eng_qsf/qsound.o eng_qsf/z80.o eng_qsf/z80dasm.o

OBJS = $(QSF) corlett.o in_qsf.o

# Define to build this as a prx (instead of a static elf)
BUILD_PRX = 1
# Define the name of our custom exports (minus the .exp extension)
PRX_EXPORTS = ../Input_Exports.exp

CFLAGS = -G0 -O2 -Wall \
		 -DLSB_FIRST -DPATH_MAX=1024
ASFLAGS = $(CFLAGS)

LDFLAGS = -mno-crt0 -nostartfiles

LIBS = -lutils -lconfig \
	   -lm -lz \

INCDIR = . eng_qsf
LIBDIR = ../SharedLib/libconfig ../SharedLib/libutils

all: exports $(TARGET).prx

exports:
	psp-build-exports -s ../Input_Exports.exp

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