source: PSPA/madxPSPA/make/compiler.icc @ 476

Last change on this file since 476 was 430, checked in by touze, 11 years ago

import madx-5.01.00

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