##
## Copyright 2016 Intel Corporation.
##
##
## This software and the related documents are Intel copyrighted materials, and your use of them is governed by
## the express license under which they were provided to you ('License'). Unless the License provides otherwise,
## you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related
## documents without Intel's prior written permission.
## This software and the related documents are provided as is, with no express or implied warranties, other than
## those that are expressly stated in the License.
##

#
# Base make configuaration
#
include Makefile_base.mk

#
# Define paths for build targets
#
MAKE_IPPCORE            := $(MAKE) -C ./tl/core
MAKE_IPPI               := $(MAKE) -C ./tl/ippi
MAKE_IPPCC              := $(MAKE) -C ./tl/ippcc
MAKE_IPPCV              := $(MAKE) -C ./tl/ippcv
MAKE_COMMON             := $(MAKE) -C ../../common
MAKE_RESIZE             := $(MAKE) -C ./examples/tl_resize
MAKE_SOBEL              := $(MAKE) -C ./examples/tl_sobel

all: libs examples

libs:
	+$(MAKE_IPPCORE)
	+$(MAKE_IPPI)
	+$(MAKE_IPPCC)
	+$(MAKE_IPPCV)

common:
	+$(MAKE_COMMON)

examples: libs common
	+$(MAKE_RESIZE)
	+$(MAKE_SOBEL)

clean:
	+$(MAKE_IPPCORE)         clean
	+$(MAKE_IPPI)            clean
	+$(MAKE_IPPCC)           clean
	+$(MAKE_IPPCV)           clean
	+$(MAKE_COMMON)          clean
	+$(MAKE_RESIZE)          clean
	+$(MAKE_SOBEL)			clean
