#######################################################################
#
# Makefile: separator 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 #############################################################

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

SRCDIRS +=  ../src

INCL += -I../include

# WAVIO includes
INCL     +=  -I../../../../tools/wavIO/include


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

OBJS =  separatorlib.o

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


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

libseparator.a:
	@$(MAKE) -f Makefile TARGET=$@ $(OPTIONS) COMLIBS="$(LIB_COMLIBS)" CFLAGS="$(CFLAGS)" OBJS="$(OBJS)" library

clean:
	@$(MAKE) TARGET="libseparator.a" OBJS="$(OBJS)" clean

clean_all:
	@$(MAKE) TARGET="libseparator.a" OBJS="$(OBJS)" COMLIBS="$(LIB_COMLIBS)" clean

endif

