#######################################################################
#
# Makefile: gVBAPRenderer library
#
#######################################################################

# include the general makefiles using this directive
GENERALROOT=../../../../
MAKEROOT=../
-include $(GENERALROOT)/general/makefile.all

# the following directive is mandatory in order to get all local stuff into this level
ifeq "$(MAKELEVEL)" "0"


# DEFFLAGS #############################################################
# DEFFLAG += -D_XOPEN_SOURCE=500

# DIRECTORIES ##########################################################

SRCDIRS +=  ../src ../src/core

INCL += -I../include -I../../../../tools/cicp2geometry/cicp2geometryLib/include




# SOURCES ##############################################################

SRCS = gVBAPRenderer.cpp functions.cpp speakersetup.cpp \
       types.cpp vbap_core.cpp vbap_ghost_wrapper.cpp quickHull.cpp



# SUMMARIZE VARIABLES ##################################################
OPTIONS  += SRCDIRS="$(SRCDIRS)" INCL="$(INCL)" INCLDEP=1 DEFFLAGS="$(DEFFLAGS)"


# MAKEFILE RULES AND DEPENDENCIES ######################################
# the first rule `all' has to depend from makefile.all
all: $(GENERALROOT)/general/makefile.all libgVBAPRenderer$(LIB_SUFFIX)

libgVBAPRenderer$(LIB_SUFFIX):
	@$(MAKE) -f Makefile TARGET=$@ $(OPTIONS)  SRCS="$(SRCS)" COMLIBS="$(LIB_COMLIBS)" CFLAGS="$(CFLAGS)" library

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

endif

