#######################################################################
#
# Makefile: SpatialEncoding Library
#
#######################################################################

CXX11=1#  # Removes -ansi and adds std=c++0x to CFLAGS
GENERALROOT=../../../../../
MAKEROOT=../

-include $(GENERALROOT)/general/makefile.all

ifeq "$(MAKELEVEL)" "0"

SRCS =  AmbientComponentModification.cpp ChannelAssignment.cpp DirBasedPreDomSoundSynthesis.cpp DirectionAndVectorEstimation.cpp \
	DynCorrection.cpp HOADecomposition.cpp SpatialEncoder.cpp PreDomSoundSynthesis.cpp VectorBasedPredomSoundSynthesis.cpp \
	FrameParams.cpp TabulatedValues.cpp sphericalHarmonic.cpp PAREncoder.cpp SubbandDirEstimation.cpp SubbandDirSigsPrediction.cpp

SRCDIRS = ../src ../../common/src ../../../common/src

INCL = -I../include -I../../common/include -I../../../common/include -I../../../bitstream/hoaBitStream/hoaBitStreamCommon/include \
       -I../../../bitstream/bitStreamIO/bitStreamCommon/include -I ../../../bitstream/bitStreamIO/bitStreamWriter/include \
       -I../../../../../tools/qmflibCppWrap/include -I../../../../../tools/qmflib/include \
       -I../../../../../tools/parDecorrelator/include -I../../../../../tools/fftlib/include \
       -I../../spatialDecoding/include -I../../../../binaural/renderer/renderer_TD/binauralRendererLib/include

OPTIONS = SRCDIRS="$(SRCDIRS)" INCL="$(INCL)" INCLDEP=1 DEFFLAGS="$(DEFFLAGS)"

all: $(GENERALROOT)/general/makefile.all libSpatialEncoding$(LIB_SUFFIX)

libSpatialEncoding$(LIB_SUFFIX):
	@echo $(DEFFLAGS)
	@$(MAKE) TARGET=$@ $(OPTIONS) SRCS="$(SRCS)" COMLIBS="$(LIB_COMLIBS)" library

clean:
	@$(MAKE) TARGET=libSpatialEncoding$(LIB_SUFFIX) SRCS="$(SRCS)" clean


endif
