ARCH=i486-linux

.PHONY: compile

ifneq ($(findstring osx,$(ARCH)), osx)
CFLAGS += -DHAS_ALSA
CXXFLAGS += -DHAS_ALSA
endif

SRCS  = ADPCMCodec.cpp
SRCS += AudioDecoder.cpp
SRCS += CodecFactory.cpp
SRCS += DVDPlayerCodec.cpp
SRCS += FLACcodec.cpp
SRCS += ModplugCodec.cpp
SRCS += MP3codec.cpp
SRCS += NSFCodec.cpp
SRCS += OggCallback.cpp
SRCS += OGGcodec.cpp
SRCS += PAPlayer.cpp
SRCS += PCMCodec.cpp
SRCS += SIDCodec.cpp
SRCS += TimidityCodec.cpp
SRCS += VGMCodec.cpp
SRCS += WAVcodec.cpp
SRCS += YMCodec.cpp

ifeq (0,1)
SRCS += ASAPCodec.cpp
endif

ifneq ($(ARCH), arm)
CXXFLAGS += -DHAS_SPC_CODEC
SRCS += SPCCodec.cpp
endif

LIB = paplayer.a

include /home/marillat/src/xbmc-13.0~alpha9/Makefile.include
-include $(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS)))
