# UADE Plugin for GameMusicGear by gama
#   Based on UADE
#    2002 - 2005, UADE Team.

TARGET = in_uade

OBJS = amifilemagic.o md5.o uadeconf.o uadecontrol.o mutex.o in_uade.o

PSP_LARGE_MEMORY = 1
# 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 = -Wall -Wno-unused -Wno-format -Wmissing-prototypes \
		 -Wstrict-prototypes -fno-exceptions -O2 \
		 -G0 -DREGPARAM= \
		 -DPSP -Dfloat64=float -DPATH_MAX=1024
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LDFLAGS = -mno-crt0 -nostartfiles

LIBS = -luade -lm -lc \
	   -lconfig

INCDIR = uade-1.03 uade-1.03/include ../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
