

GENERALROOT=../../../../../../
MAKEROOT=../

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

ifeq "$(MAKELEVEL)" "0"
SRCS = Binauralizer.c ReverbGenerator.c BinauralProfileLevelConstraints.c

SRCDIRS =  ../src
INCL    =  -I../include
INCL   += -I$(GENERALROOT)/tools/AFsp/include
INCL   += -I$(GENERALROOT)/tools/AFsp/include/libtsp
INCL   += -I../../../../interface/binauralInterfaceLib/include
INCL   += -I../../../../../../tools/wavIO/include
INCL   += -I../../../../../../tools/qmflib/include
INCL   += -I../../../../../../tools/fftlib/include
INCL   += -I../../../../../../tools/cicp2geometry/cicp2geometryLib/include
INCL   += -I../../../../../../tools/writeonlybitbuf/include
INCL   += -I../../../../../../tools/readonlybitbuf/include

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

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

libbinauralRenderer$(LIB_SUFFIX):
	@$(MAKE) TARGET=$@ $(OPTIONS) SRCS="$(SRCS)" COMLIBS="$(LIB_COMLIBS)" library

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


endif

