source: PSPA/madxPSPA/make/compiler.g++ @ 478

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

import madx-5.01.00

File size: 1.1 KB
Line 
1# |
2# o---------------------------------------------------------------------o
3# |
4# | MAD makefile - g++ 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# makedep
21#
22
23CXXDEP = $(CXX) -MM $(addprefix -I,$(CXX_DIR))
24
25#
26# preprocessor flags
27#
28
29CPPFLAGS += -D_GXX
30
31#
32# compiler
33#
34
35CXXFLAGS = -m$(ARCH) -O$(NOPT) -std=c++98 -Wall -W -pedantic -c
36
37#
38# options flags
39#
40
41ifeq ($(DEBUG),yes)
42CXXFLAGS += -g -ggdb
43endif
44
45ifeq ($(PROFILE),yes)
46CXXFLAGS += -pg
47endif
48
49ifeq ($(SHARED),yes)
50CXXFLAGS += -fPIC
51endif
52
53#
54# extra flags
55#
56
57CXXFLAGS += -pipe $(addprefix -I,$(CXX_DIR))
58
59ifeq ($(OSTYPE),Darwin)
60CXXFLAGS += -mmacosx-version-min=10.5
61endif
62 
63#
64# diagnostics (g++ is the reference)
65#
66
67CXXFLAGS += -Wpointer-arith -Wcast-align -Wcast-qual -Winline \
68            -Wfloat-equal -Wconversion -Wno-conversion \
69            -Wchar-subscripts -Wwrite-strings
70
71# end of makefile
Note: See TracBrowser for help on using the repository browser.