source: PSPA/madxPSPA/make/compiler.icl @ 489

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

import madx-5.01.00

File size: 2.2 KB
Line 
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
27CPPFLAGS += -D_ICC -D_ICL
28
29#
30# command translator
31#
32
33ICL_CC1 := -D%  -I% /O0
34ICL_CC2 := /D%  /I% /Od
35
36###############
37# C language
38#
39
40ifeq ($(CCNAME),icl)
41
42#
43# makedep
44#
45
46ifneq ($(SED),)
47CDEP = $(CC) /nologo /Zs /QMM $(addprefix /I,$(CC_DIR))
48CDEP_tr = | $(SED) -e "s/$(call f2bs,$(CURDIR)/)//gi" -e "s/\.obj:/\.o:/g"
49endif
50
51#
52# compiler
53#
54
55CFLAGS = /Qstd=c99 /Wall /Wcheck /Wp64 /O$(NOPT) /c
56
57#
58# diagnostics
59#
60
61CFLAGS += /D_CRT_SECURE_NO_WARNINGS /Qdiag-disable:2259,1572,981 # /Qdiag-enable:sc2
62
63#
64# options flags
65#
66
67ifeq ($(DEBUG),yes)
68CFLAGS += /debug:full
69endif
70
71ifeq ($(PROFILE),yes)
72CFLAGS += /Qprof-use
73endif
74
75#
76# extra flags
77#
78
79CFLAGS += /nologo /Qprec /fp:strict /EHc /Qrestrict $(addprefix /I,$(CC_DIR))
80
81#
82# command translator
83#
84
85CC_tr = $(strip $(subst $(SPACE)-o , /Fo,$(call trans,$(ICL_CC1),$(ICL_CC2),$1)))
86
87endif
88
89###############
90# C++ language
91#
92
93ifeq ($(CXXNAME),icl)
94
95#
96# makedep
97#
98
99ifneq ($(SED),)
100CXXDEP = $(CXX) /nologo /Zs /QMM $(addprefix /I,$(CXX_DIR))
101CXXDEP_tr = | $(SED) -e "s/$(call f2bs,$(CURDIR)/)//gi" -e "s/\.obj:/\.o:/g"
102endif
103
104#
105# compiler
106#
107
108CXXFLAGS = /Qstd=c++0x /Wall /Wcheck /Wp64 /O$(NOPT) /c
109
110#
111# diagnostics
112#
113
114CXXFLAGS += /D_CRT_SECURE_NO_WARNINGS /Qdiag-disable:2259,1572,981 # /Qdiag-enable:sc2
115
116#
117# options flags
118#
119
120ifeq ($(DEBUG),yes)
121CXXFLAGS += /debug:full
122endif
123
124ifeq ($(PROFILE),yes)
125CXXFLAGS += /Qprof-use
126endif
127
128#
129# extra flags
130#
131
132CXXFLAGS += /nologo /Qprec /fp:strict /EHc /Qrestrict $(addprefix /I,$(CXX_DIR))
133
134#
135# command translator
136#
137
138CXX_tr = $(strip $(subst $(SPACE)-o , /Fo,$(call trans,$(ICL_CC1),$(ICL_CC2),$1)))
139
140endif
141
142# end of makefile
Note: See TracBrowser for help on using the repository browser.