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 | |
---|
23 | CXXDEP = $(CXX) -MM $(addprefix -I,$(CXX_DIR)) |
---|
24 | |
---|
25 | # |
---|
26 | # preprocessor flags |
---|
27 | # |
---|
28 | |
---|
29 | CPPFLAGS += -D_GXX |
---|
30 | |
---|
31 | # |
---|
32 | # compiler |
---|
33 | # |
---|
34 | |
---|
35 | CXXFLAGS = -m$(ARCH) -O$(NOPT) -std=c++98 -Wall -W -pedantic -c |
---|
36 | |
---|
37 | # |
---|
38 | # options flags |
---|
39 | # |
---|
40 | |
---|
41 | ifeq ($(DEBUG),yes) |
---|
42 | CXXFLAGS += -g -ggdb |
---|
43 | endif |
---|
44 | |
---|
45 | ifeq ($(PROFILE),yes) |
---|
46 | CXXFLAGS += -pg |
---|
47 | endif |
---|
48 | |
---|
49 | ifeq ($(SHARED),yes) |
---|
50 | CXXFLAGS += -fPIC |
---|
51 | endif |
---|
52 | |
---|
53 | # |
---|
54 | # extra flags |
---|
55 | # |
---|
56 | |
---|
57 | CXXFLAGS += -pipe $(addprefix -I,$(CXX_DIR)) |
---|
58 | |
---|
59 | ifeq ($(OSTYPE),Darwin) |
---|
60 | CXXFLAGS += -mmacosx-version-min=10.5 |
---|
61 | endif |
---|
62 | |
---|
63 | # |
---|
64 | # diagnostics (g++ is the reference) |
---|
65 | # |
---|
66 | |
---|
67 | CXXFLAGS += -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.