Line | |
---|
1 | # | |
---|
2 | # o---------------------------------------------------------------------o |
---|
3 | # | |
---|
4 | # | MAD makefile - g95 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 | # NOTE: compile/link only on properly configured linux (not lxplus!) |
---|
20 | # does not compile/link correctly on other platforms |
---|
21 | # 64 bits Linux required g95 >= 0.93 |
---|
22 | |
---|
23 | # |
---|
24 | # makedep |
---|
25 | # |
---|
26 | |
---|
27 | # fortran dependencies computation requires mod files (quite stupid)! |
---|
28 | # FDEP = $(FC) -M -fmod=$(OBJDIR) $(addprefix -I,$(FC_DIR)) |
---|
29 | |
---|
30 | # |
---|
31 | # preprocessor flags |
---|
32 | # |
---|
33 | |
---|
34 | CPPFLAGS += -D_G95 |
---|
35 | |
---|
36 | # |
---|
37 | # compiler flags |
---|
38 | # |
---|
39 | |
---|
40 | FFLAGS = -m$(ARCH) -O$(NOPT) -c |
---|
41 | |
---|
42 | # Trig too many warnings for the moment! |
---|
43 | # fortran code is not conformant to f90/f95 (break compilation)! |
---|
44 | # FFLAGS = -m$(ARCH) -O$(NOPT) -std=f95 -Wall -Wextra -pedantic -c |
---|
45 | |
---|
46 | # |
---|
47 | # options flags |
---|
48 | # |
---|
49 | |
---|
50 | ifeq ($(DEBUG),yes) |
---|
51 | FFLAGS += -g |
---|
52 | endif |
---|
53 | |
---|
54 | ifeq ($(PROFILE),yes) |
---|
55 | FFLAGS += -pg |
---|
56 | endif |
---|
57 | |
---|
58 | # |
---|
59 | # extra flags |
---|
60 | # |
---|
61 | |
---|
62 | FFLAGS += -pipe -fno-second-underscore -fmod=$(OBJDIR) $(addprefix -I,$(FC_DIR)) |
---|
63 | |
---|
64 | # end of makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.