# SID Plugin for GameMusicGear by gama
#   Based on SidPlay 1
#    1994 - 1997 Michael Schwendt.

TARGET = in_sid

OBJS = in_sid.o xs_md5.o xs_length.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
ASFLAGS = $(CFLAGS)
LDFLAGS = -mno-crt0 -nostartfiles

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

INCDIR = libsidplay-1.36.59 ../SharedLib/libconfig
LIBDIR = ../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
