Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BUILDER / makefile / private / api / cuda / cuda_Boost.mk
1 # Version : 0.0.4
2 # Author : Cedric.Bilat@he-arc.ch
3 #
4
5 ifndef __API_CUDA_BOOST_MK__
6 __API_CUDA_BOOST_MK__=true
7
8 ##########################################
9 # Boost Cuda #
10 ##########################################
11
12
13 #########################
14 # WINDOWS #
15 #########################
16
17 ifeq ($(OS),Win)
18
19 ############
20 # Visual #
21 ############
22
23 ifeq ($(COMPILATEUR),VISUAL)
24
25 #include
26 NVCCFLAGS+= -I${BOOST64_INC}
27
28 #link
29 NVCCLDFLAGS+= -L${BOOST64_VISUAL_LIB_STATIC}
30 #NVCCLDFLAGS+= -L${BOOST64_VISUAL_LIB}
31
32
33 #runtime
34 API_BIN+= ${BOOST64_VISUAL_BIN}
35
36 endif
37
38 endif
39
40
41
42 #########################
43 # LINUX #
44 #########################
45
46 ifeq ($(OS),Linux)
47
48 ############
49 # common #
50 ############
51
52 #instalation : sudo apt-get install libboost-all-dev
53 #NVCCFLAGS+= -L/usr/lib
54
55 #installtion manuel
56
57 #compilation
58 #NVCCFLAGS+= -I/opt/boost/include
59 NVCCFLAGS+= -I$(subst :, -I,${BOOST_INC})
60
61 #link
62 #NVCCLDFLAGS+= -L/opt/boost/gcc/lib
63 NVCCLDFLAGS+= -L$(subst :, -L,${BOOST_LIB})
64 NVCCLDFLAGS+= -l$(subst :, -l,${BOOST_LIBRARIES})
65
66 #runtime
67 API_BIN+= ${BOOST_LIB}
68
69 ############
70 # GCC #
71 ############
72
73 ifeq ($(COMPILATEUR),g++)
74
75 #rien
76
77 endif
78
79 ############
80 # ARM #
81 ############
82
83 ifeq ($(ARCH),arm)
84 #RPATH_LINK+=${BOOST_LIB}
85 endif
86
87 endif#end os
88
89 ##########################################
90 # END #
91 ##########################################
92
93 endif#__API_CUDA_BOOST_MK__