Line | |
---|
1 | # | |
---|
2 | # o---------------------------------------------------------------------o |
---|
3 | # | |
---|
4 | # | MAD makefile - 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 |
---|
28 | |
---|
29 | ############### |
---|
30 | # C language |
---|
31 | # |
---|
32 | |
---|
33 | ifeq ($(CCNAME),icc) |
---|
34 | |
---|
35 | # |
---|
36 | # makedep |
---|
37 | # |
---|
38 | |
---|
39 | CDEP = $(CC) -MM $(addprefix -I,$(CC_DIR)) |
---|
40 | |
---|
41 | # |
---|
42 | # compiler |
---|
43 | # |
---|
44 | |
---|
45 | CFLAGS = -m$(ARCH) -O$(NOPT) -std=c99 -Wall -Wcheck -Wp64 -c |
---|
46 | |
---|
47 | # |
---|
48 | # diagnostics |
---|
49 | # |
---|
50 | |
---|
51 | CFLAGS += -diag-disable 2259,1572,981 # -diag-enable port-win # -diag-enable sc2 |
---|
52 | |
---|
53 | # |
---|
54 | # options flags |
---|
55 | # |
---|
56 | |
---|
57 | ifeq ($(DEBUG),yes) |
---|
58 | CFLAGS += -g -gdwarf-2 |
---|
59 | endif |
---|
60 | |
---|
61 | ifeq ($(PROFILE),yes) |
---|
62 | CFLAGS += -p |
---|
63 | endif |
---|
64 | |
---|
65 | ifeq ($(SHARED),yes) |
---|
66 | CFLAGS += -fPIC |
---|
67 | endif |
---|
68 | |
---|
69 | # |
---|
70 | # extra flags |
---|
71 | # |
---|
72 | |
---|
73 | CFLAGS += -mp1 -fp-model strict $(addprefix -I,$(CC_DIR)) |
---|
74 | |
---|
75 | ifeq ($(OSTYPE),Darwin) |
---|
76 | CFLAGS += -mmacosx-version-min=10.5 |
---|
77 | endif |
---|
78 | |
---|
79 | endif |
---|
80 | |
---|
81 | ############### |
---|
82 | # C++ language |
---|
83 | # |
---|
84 | |
---|
85 | ifeq ($(CXXNAME),icc) |
---|
86 | |
---|
87 | # |
---|
88 | # makedep |
---|
89 | # |
---|
90 | |
---|
91 | CXXDEP = $(CXX) -MM $(addprefix -I,$(CXX_DIR)) |
---|
92 | |
---|
93 | # |
---|
94 | # compiler |
---|
95 | # |
---|
96 | |
---|
97 | CXXFLAGS = -m$(ARCH) -O$(NOPT) -std=c++0x -Wall -Wcheck -Wp64 -c |
---|
98 | |
---|
99 | # |
---|
100 | # diagnostics |
---|
101 | # |
---|
102 | |
---|
103 | CXXFLAGS += -diag-disable 2259,1572,981 # -diag-enable port-win # -diag-enable sc2 |
---|
104 | |
---|
105 | # |
---|
106 | # options flags |
---|
107 | # |
---|
108 | |
---|
109 | ifeq ($(DEBUG),yes) |
---|
110 | CXXFLAGS += -g -gdwarf-2 |
---|
111 | endif |
---|
112 | |
---|
113 | ifeq ($(PROFILE),yes) |
---|
114 | CXXFLAGS += -p |
---|
115 | endif |
---|
116 | |
---|
117 | ifeq ($(SHARED),yes) |
---|
118 | CXXFLAGS += -fPIC |
---|
119 | endif |
---|
120 | |
---|
121 | # |
---|
122 | # extra flags |
---|
123 | # |
---|
124 | |
---|
125 | CXXFLAGS += -mp1 -fp-model strict $(addprefix -I,$(CXX_DIR)) |
---|
126 | |
---|
127 | ifeq ($(OSTYPE),Darwin) |
---|
128 | CXXFLAGS += -mmacosx-version-min=10.5 |
---|
129 | endif |
---|
130 | |
---|
131 | endif |
---|
132 | |
---|
133 | # end of makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.