Line | |
---|
1 | # | |
---|
2 | # o---------------------------------------------------------------------o |
---|
3 | # | |
---|
4 | # | MAD makefile - gfortran 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: |
---|
20 | # Use gfortran 4.4 or higher to compile... |
---|
21 | # Use gfortran 4.6 or higher to compile with -O3 |
---|
22 | |
---|
23 | # |
---|
24 | # makedep |
---|
25 | # |
---|
26 | |
---|
27 | # fortran dependencies computation requires mod files (quite stupid, need loops)! |
---|
28 | # FDEP = $(FC) -MM -cpp -J$(OBJDIR) $(addprefix -I,$(FC_DIR)) |
---|
29 | |
---|
30 | # |
---|
31 | # preprocessor flags |
---|
32 | # |
---|
33 | |
---|
34 | CPPFLAGS += -D_GFORTRAN |
---|
35 | |
---|
36 | # |
---|
37 | # compiler flags |
---|
38 | # |
---|
39 | |
---|
40 | # gfortran 4.1 to 4.5 craches on l_complex_taylor.f90 with -O3, 4.6 is ok |
---|
41 | FFLAGS = -m$(ARCH) -O$(NOPT) -c |
---|
42 | |
---|
43 | #FFLAGS = -m$(ARCH) -std=f95 -Wall -W -pedantic -c |
---|
44 | |
---|
45 | # |
---|
46 | # options flags |
---|
47 | # |
---|
48 | |
---|
49 | ifeq ($(DEBUG),yes) |
---|
50 | FFLAGS += -g -ggdb |
---|
51 | endif |
---|
52 | |
---|
53 | ifeq ($(PROFILE),yes) |
---|
54 | FFLAGS += -pg |
---|
55 | endif |
---|
56 | |
---|
57 | ifeq ($(SHARED),yes) |
---|
58 | FFLAGS += -fPIC |
---|
59 | endif |
---|
60 | |
---|
61 | # |
---|
62 | # extra flags |
---|
63 | # |
---|
64 | |
---|
65 | FFLAGS += -pipe -fno-second-underscore -fall-intrinsics -fno-range-check \ |
---|
66 | -J$(OBJDIR) $(addprefix -I,$(FC_DIR)) |
---|
67 | |
---|
68 | ifeq ($(OSTYPE),Darwin) |
---|
69 | FFLAGS += -mmacosx-version-min=10.5 |
---|
70 | endif |
---|
71 | |
---|
72 | # end of makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.