3 # Author : Cedric.Bilat@he-arc.ch
5 # See : OptionCompilateur.txt
8 # Hyp : Application that must be in path
12 ifndef __CPP_FILSE_SET_MK__
13 __CPP_FILSE_SET_MK__=true
22 RESOURCES_PATH:=$(SRC_ROOT)/resources
23 TARGET_OBJ_PATH:=${TARGET_PATH}/obj
24 TARGET_BIN_PATH:=${TARGET_PATH}/bin
26 #TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin
27 TARGET_DEPLOY_PATH_DOC=${TARGET_DEPLOY_PATH}/doc
29 SRC_PATH:=$(shell find $(SRC_ROOT) -type d)
32 SRC_PATH_AUX:=$(shell find $(SRC_AUX) -type d)
37 SRC_PATH_ALL:=$(SRC_PATH) $(SRC_PATH_AUX)
44 SRC_CPP_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cpp))
45 SRC_C_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.c))
46 SRC_HEADER_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.h))
49 SRC_LIB_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.lib))
50 SRC_DLL_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.dll))
53 SRC_SO_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.so))
54 SRC_A_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.a))
57 SRC_CU_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cu))
59 override INC_PATH:=${INC_PATH} $(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.h)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist
60 override INC_PATH:=$(call uniq,${INC_PATH})
61 #${info "INC_PATH= "${INC_PATH}}#print immediately
67 endif#__CPP_FILSE_SET_MK__