# SAP Plugin for GameMusicGear by gama
#   Based on the ASAP Engine.
#    2005 - 2008 Piotr Fusik.

TARGET = in_sap

ASAP = acpu.o apokeysnd.o asap.o
OBJS = $(ASAP) in_sap.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
ASFLAGS = $(CFLAGS)

LDFLAGS = -mno-crt0 -nostartfiles

INCDIR = ./
LIBDIR = ../SharedLib/libconfig
LIBS = -lconfig

all: exports $(TARGET).prx

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

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