source: PSPA/madxPSPA/make/compiler.g95 @ 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.2 KB
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
34CPPFLAGS += -D_G95
35
36#
37# compiler flags
38#
39
40FFLAGS = -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
50ifeq ($(DEBUG),yes)
51FFLAGS += -g
52endif
53
54ifeq ($(PROFILE),yes)
55FFLAGS  += -pg
56endif
57
58#
59# extra flags
60#
61
62FFLAGS += -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.