# SC68 Plugin for GameMusicGear by gama
#   Based on the SC68 Library
#    2003 sashipa.

TARGET = in_sc68

OBJS = in_sc68.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
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti

LDFLAGS = -mno-crt0 -nostartfiles

LIBS = -lsc68 -lm \
	   -lconfig -lstdc++

INCDIR = sc68-2.2.1 ../SharedLib/libconfig
LIBDIR = sc68-2.2.1 ../SharedLib/libconfig

all: exports $(TARGET).prx

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

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