# MODPLUG Plugin for GameMusicGear by gama
#   Based on libmodplug
#    2006 Olivier Lapicque.

TARGET = in_modplug

OBJS = in_modplug.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 = -lmodplug -lm -lstdc++ \
	   -lutils -lconfig

LIBDIR = libmodplug-0.8.7/src ../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
