source: PSPA/madxPSPA/make/compiler.gfortran @ 430

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

import madx-5.01.00

File size: 1.3 KB
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
34CPPFLAGS += -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
41FFLAGS = -m$(ARCH) -O$(NOPT) -c
42
43#FFLAGS = -m$(ARCH) -std=f95 -Wall -W -pedantic -c
44
45#
46# options flags
47#
48
49ifeq ($(DEBUG),yes)
50FFLAGS += -g -ggdb
51endif
52
53ifeq ($(PROFILE),yes)
54FFLAGS += -pg
55endif
56
57ifeq ($(SHARED),yes)
58FFLAGS += -fPIC
59endif
60
61#
62# extra flags
63#
64
65FFLAGS += -pipe -fno-second-underscore -fall-intrinsics -fno-range-check \
66          -J$(OBJDIR) $(addprefix -I,$(FC_DIR))
67
68ifeq ($(OSTYPE),Darwin)
69FFLAGS += -mmacosx-version-min=10.5
70endif
71
72# end of makefile
Note: See TracBrowser for help on using the repository browser.