1 | # | |
---|
2 | # o---------------------------------------------------------------------o |
---|
3 | # | |
---|
4 | # | MAD makefile - icl/icc compiler settings |
---|
5 | # | |
---|
6 | # o---------------------------------------------------------------------o |
---|
7 | # | |
---|
8 | # | Methodical Accelerator Design |
---|
9 | # | |
---|
10 | # | Copyright (c) 2011+ CERN, mad@cern.ch |
---|
11 | # | |
---|
12 | # | For more information, see http://cern.ch/mad |
---|
13 | # | |
---|
14 | # o---------------------------------------------------------------------o |
---|
15 | # | |
---|
16 | # | $Id$ |
---|
17 | # | |
---|
18 | |
---|
19 | ##################### |
---|
20 | # ICC specific |
---|
21 | # |
---|
22 | |
---|
23 | # |
---|
24 | # preprocessor flags |
---|
25 | # |
---|
26 | |
---|
27 | CPPFLAGS += -D_ICC -D_ICL |
---|
28 | |
---|
29 | # |
---|
30 | # command translator |
---|
31 | # |
---|
32 | |
---|
33 | ICL_CC1 := -D% -I% /O0 |
---|
34 | ICL_CC2 := /D% /I% /Od |
---|
35 | |
---|
36 | ############### |
---|
37 | # C language |
---|
38 | # |
---|
39 | |
---|
40 | ifeq ($(CCNAME),icl) |
---|
41 | |
---|
42 | # |
---|
43 | # makedep |
---|
44 | # |
---|
45 | |
---|
46 | ifneq ($(SED),) |
---|
47 | CDEP = $(CC) /nologo /Zs /QMM $(addprefix /I,$(CC_DIR)) |
---|
48 | CDEP_tr = | $(SED) -e "s/$(call f2bs,$(CURDIR)/)//gi" -e "s/\.obj:/\.o:/g" |
---|
49 | endif |
---|
50 | |
---|
51 | # |
---|
52 | # compiler |
---|
53 | # |
---|
54 | |
---|
55 | CFLAGS = /Qstd=c99 /Wall /Wcheck /Wp64 /O$(NOPT) /c |
---|
56 | |
---|
57 | # |
---|
58 | # diagnostics |
---|
59 | # |
---|
60 | |
---|
61 | CFLAGS += /D_CRT_SECURE_NO_WARNINGS /Qdiag-disable:2259,1572,981 # /Qdiag-enable:sc2 |
---|
62 | |
---|
63 | # |
---|
64 | # options flags |
---|
65 | # |
---|
66 | |
---|
67 | ifeq ($(DEBUG),yes) |
---|
68 | CFLAGS += /debug:full |
---|
69 | endif |
---|
70 | |
---|
71 | ifeq ($(PROFILE),yes) |
---|
72 | CFLAGS += /Qprof-use |
---|
73 | endif |
---|
74 | |
---|
75 | # |
---|
76 | # extra flags |
---|
77 | # |
---|
78 | |
---|
79 | CFLAGS += /nologo /Qprec /fp:strict /EHc /Qrestrict $(addprefix /I,$(CC_DIR)) |
---|
80 | |
---|
81 | # |
---|
82 | # command translator |
---|
83 | # |
---|
84 | |
---|
85 | CC_tr = $(strip $(subst $(SPACE)-o , /Fo,$(call trans,$(ICL_CC1),$(ICL_CC2),$1))) |
---|
86 | |
---|
87 | endif |
---|
88 | |
---|
89 | ############### |
---|
90 | # C++ language |
---|
91 | # |
---|
92 | |
---|
93 | ifeq ($(CXXNAME),icl) |
---|
94 | |
---|
95 | # |
---|
96 | # makedep |
---|
97 | # |
---|
98 | |
---|
99 | ifneq ($(SED),) |
---|
100 | CXXDEP = $(CXX) /nologo /Zs /QMM $(addprefix /I,$(CXX_DIR)) |
---|
101 | CXXDEP_tr = | $(SED) -e "s/$(call f2bs,$(CURDIR)/)//gi" -e "s/\.obj:/\.o:/g" |
---|
102 | endif |
---|
103 | |
---|
104 | # |
---|
105 | # compiler |
---|
106 | # |
---|
107 | |
---|
108 | CXXFLAGS = /Qstd=c++0x /Wall /Wcheck /Wp64 /O$(NOPT) /c |
---|
109 | |
---|
110 | # |
---|
111 | # diagnostics |
---|
112 | # |
---|
113 | |
---|
114 | CXXFLAGS += /D_CRT_SECURE_NO_WARNINGS /Qdiag-disable:2259,1572,981 # /Qdiag-enable:sc2 |
---|
115 | |
---|
116 | # |
---|
117 | # options flags |
---|
118 | # |
---|
119 | |
---|
120 | ifeq ($(DEBUG),yes) |
---|
121 | CXXFLAGS += /debug:full |
---|
122 | endif |
---|
123 | |
---|
124 | ifeq ($(PROFILE),yes) |
---|
125 | CXXFLAGS += /Qprof-use |
---|
126 | endif |
---|
127 | |
---|
128 | # |
---|
129 | # extra flags |
---|
130 | # |
---|
131 | |
---|
132 | CXXFLAGS += /nologo /Qprec /fp:strict /EHc /Qrestrict $(addprefix /I,$(CXX_DIR)) |
---|
133 | |
---|
134 | # |
---|
135 | # command translator |
---|
136 | # |
---|
137 | |
---|
138 | CXX_tr = $(strip $(subst $(SPACE)-o , /Fo,$(call trans,$(ICL_CC1),$(ICL_CC2),$1))) |
---|
139 | |
---|
140 | endif |
---|
141 | |
---|
142 | # end of makefile |
---|