Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BUILDER / makefile / private / cpp / fileSet.mk
1 # Version : 0.0.2
2 # Date : 26.01.2012
3 # Author : Cedric.Bilat@he-arc.ch
4 #
5 # See : OptionCompilateur.txt
6 # MakeFileNotice.txt
7 #
8 # Hyp : Application that must be in path
9 # sh
10 #
11
12 ifndef __CPP_FILSE_SET_MK__
13 __CPP_FILSE_SET_MK__=true
14
15
16
17 #############
18 # Path #
19 #############
20
21 SRC_ROOT:=src
22 RESOURCES_PATH:=$(SRC_ROOT)/resources
23 TARGET_OBJ_PATH:=${TARGET_PATH}/obj
24 TARGET_BIN_PATH:=${TARGET_PATH}/bin
25
26 #TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin
27 TARGET_DEPLOY_PATH_DOC=${TARGET_DEPLOY_PATH}/doc
28
29 SRC_PATH:=$(shell find $(SRC_ROOT) -type d)
30
31 ifdef SRC_AUX
32 SRC_PATH_AUX:=$(shell find $(SRC_AUX) -type d)
33 else
34 SRC_PATH_AUX:=
35 endif
36
37 SRC_PATH_ALL:=$(SRC_PATH) $(SRC_PATH_AUX)
38
39 #############
40 # SET FILES #
41 #############
42
43 #all
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))
47
48 #visual,intel
49 SRC_LIB_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.lib))
50 SRC_DLL_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.dll))
51
52 #gcc,mingw
53 SRC_SO_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.so))
54 SRC_A_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.a))
55
56 #nvcc
57 SRC_CU_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cu))
58
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
62
63 #########
64 # End #
65 #########
66
67 endif#__CPP_FILSE_SET_MK__