Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BUILDER / makefile / public / cpp / intelLinux.mk
1 # Version : 0.0.4
2 # Author : Cedric.Bilat@he-arc.ch
3 #
4 # Attention
5 #
6 # (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin!
7 # (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy
8 #
9
10
11 ifndef __INTEL_LINUX_PUBLIC_OPTION_MK__
12 __INTEL_LINUX_PUBLIC_OPTION_MK__=true
13
14 ###############################################
15 # Intel Linux #
16 ###############################################
17
18
19 ########################
20 # public #
21 ########################
22
23 # Option de compilation
24 # Version minimale : vide
25 # Surcharger automatiquement (par exemple en fonction du type de la target)
26
27 #CXXFLAGS+=#
28
29 #################
30 # Warning #
31 #################
32
33 CXXFLAGS+= -w #supress warning message
34
35 #################
36 # Optimisation #
37 #################
38
39 # General
40 CXX_OPTIMISATION+= -O3
41
42 X86_CXX_OPTIMISATION+= -fast
43 X86_CXX_OPTIMISATION+= -parallel #linux pose probleme si projet trop simple (undefined reference to `__kmpc_begin'). Solution : use in local intelLinux.mk : CXXFLAGS_EXCLUDE+= -parallel
44 X86_CXX_OPTIMISATION+= -par-threshold100
45
46
47
48 # CPU specific
49 #X86_CXX_OPTIMISATION+= -axSSSE3
50 #X86_CXX_OPTIMISATION+= -axSSE4.1 # xeon home
51 X86_CXX_OPTIMISATION+= -axSSE4.2 # cuda1
52 #X86_CXX_OPTIMISATION+= -axAVX # (si pas supporter, alors recherche le meilleur!)
53 #X86_CXX_OPTIMISATION+= -axAVX2 # cuda2
54
55 #################
56 # debug #
57 #################
58
59 #decommneter la ligne pour
60 # (1) empecher l'optimisation
61 # (2) activer les flag de debug
62
63 #DEBUG=true
64
65 #################
66 # linkage #
67 #################
68
69 # Static Lib
70 # Version minimale : vide
71 # Surcharger automatiquement (par exemple en fonction du type de la target)
72
73 ARFLAGS+=#
74
75 # Shared lib
76 # Version minimale : vide (sera surcharg�e)
77 # Surcharger automatiquement (par exemple en fonction du type de la target)
78
79 LDFLAGS_AUX+=
80
81
82
83 #################
84 # extension #
85 #################
86
87 #Injection de variable dans le code
88 # same as #define XXX YYY
89 # same as -DXXX
90 #Attention, pas mettre -D, ni #define, que XXX
91
92 CODE_DEFINE_VARIABLES+=
93
94 # Attention :
95 # separateur est espac
96 # sans extension .lib
97 # sans prefixe lib
98
99 EXCLUDE_LIBRARY_FILES+=
100 ADD_LIBRARY_FILES+=
101
102 ###############################################
103 # End #
104 ###############################################
105
106 endif#__INTEL_LINUX_PUBLIC_OPTION_MK__
107