2 # Author : Cedric.Bilat@he-arc.ch
8 ###############################################
10 ###############################################
12 ########################
14 ########################
16 API_ROOT:=${ROOT_MAKEFILE_PRIVATE}/api
18 API_CUDA:=${API_ROOT}/cuda
20 include dataProject.mk
26 include ${ROOT_MAKEFILE_PRIVATE_COMMON}/c++11.mk
28 ########################
30 ########################
32 #http://stackoverflow.com/questions/12315834/makefile-how-to-apply-an-equivalent-to-filter-on-multiple-wildcards
33 not-containing = $(foreach v,$2,$(if $(findstring $1,$v),,$v))
34 containing = $(foreach v,$2,$(if $(findstring $1,$v),$v))
37 #LIST := a_old_tt x_old_da a_new_da q_ty_we
38 #LIST_OLD := $(call containing,old,$(LIST))
39 #LIST_NOT_OLD := $(call not-containing,old,$(LIST))
41 #http://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting
43 #v1: linux : ko : win : ok
46 # $(foreach _,$1,$(if $(filter $_,${seen}),,$(eval seen += $_)))
53 #${info ${w}}#print immediately ww
55 #v2 : linux ok : win ok
56 uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
60 #${info ${w}}#print immediately ww
62 ###############################################
64 ###############################################