#######################################################################
#
# Makefile: separator example
#
#######################################################################

# 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"


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

SRCDIRS +=  ../src

INCL += -I../../separatorLib/include


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

SRCS = separatorCmdl.c


# COMLIBS ##############################################################

COMLIBS += -lseparator -lwavIO


# 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 $(ISOMEDIA_LIB) separatorCmdl 


separatorCmdl:  
	@$(MAKE) TARGET=$@ $(OPTIONS) COMLIBS="$(COMLIBS)" SYSLIBS="$(ISOMEDIA_LIB)" CFLAGS="$(CFLAGS)" SRCS="$(SRCS)" binary

clean:
	@$(MAKE) TARGET="separatorCmdl" SRCS="$(SRCS)" clean

clean_all:
	@$(MAKE) TARGET="separatorCmdl" OBJS="$(OBJS)" COMLIBS="$(COMLIBS)" clean


endif

