# File name: MAKEFILE.MK
#            This file builds all the algorithm libraries

algorithmslib_build: 
	$(MAKE) -fMAKEFILE.MK $(ALG_TARGET) PROFILE_c66xdsp_1=$(PROFILE)  PROFILE_c66xdsp_2=$(PROFILE) PROFILE_arp32_1=$(PROFILE) PROFILE_arp32_2=$(PROFILE) PROFILE_arp32_3=$(PROFILE) PROFILE_arp32_4=$(PROFILE) PROFILE_ipu1_0=$(PROFILE) PROFILE_ipu1_1=$(PROFILE) PROFILE_ipu2=$(PROFILE) PROFILE_a15_0=$(PROFILE)

algorithmslib_build_allprofile: 
	$(MAKE) -fMAKEFILE.MK algorithmslib_build PROFILE=debug
	$(MAKE) -fMAKEFILE.MK algorithmslib_build PROFILE=release

algorithmslib:
	$(MAKE) -fMAKEFILE.MK algorithmslib_build_allprofile ALG_TARGET=edgedetectionlib

algorithmslib_clean:
	$(MAKE) -fMAKEFILE.MK algorithmslib_build_allprofile ALG_TARGET=edgedetectionlib_clean

#######################################
#                                     #
# Edge Detection                      #
#                                     #
#######################################
edgedetectionlib:
	$(MAKE) -C ./edgedetection/algorithmSrc -fMAKEFILE.MK edgedetection

edgedetectionlib_clean:
	$(MAKE) -C ./edgedetection/algorithmSrc -fMAKEFILE.MK clean

edgedetectionlib_all: edgedetection_clean edgedetection
