source: LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/Makefile_include.gfortran @ 5196

Last change on this file since 5196 was 4728, checked in by idelkadi, 13 months ago

Update of ecrad in the LMDZ_ECRad branch of LMDZ:

  • version 1.6.1 of ecrad
  • files are no longer grouped in the same ecrad directory.
  • the structure of ecrad offline is preserved to facilitate updating in LMDZ
  • cfg.bld modified to take into account the new added subdirectories.
  • the interface routines and those added in ecrad are moved to the phylmd directory
File size: 1.2 KB
Line 
1# Fortran compiler executable -*- Makefile -*-
2FC = gfortran
3
4# Tell the compiler to accept C-preprocessor directives
5CPPFLAGS = -cpp
6
7# Basic flags such as where to write module files. We used to have the
8# flag "-fconvert=big-endian" here because the RRTM input files are
9# big endian Fortran unformatted files, but now the file ordering has
10# been specified at the OPEN command so no compiler flags are needed.
11BASICFLAGS = -J../mod -fno-range-check
12
13# OpenMP flag; type "make OMPFLAG=-DNO_OPENMP" to compile with OpenMP
14# disabled
15OMPFLAG = -fopenmp
16
17ifndef DEBUG
18# --NORMAL CONFIGURATION--
19
20# Optimization flags
21OPTFLAGS = -O3
22# -march=native
23
24# Warning flags: all except those that warn about unused stuff
25WARNFLAGS = -Wall -Wno-unused-label -Wno-unused-dummy-argument -Wno-unused-variable
26
27# Debugging flags, such as "-g" to store debugging symbols, and
28# instructions to abort if certain floating-point exceptions occur
29DEBUGFLAGS = -g -ffpe-trap=invalid,zero,overflow
30
31else
32# --DEBUGGING CONFIGURATION--
33OPTFLAGS = -O0
34WARNFLAGS = -Wall
35DEBUGFLAGS = -g -ffpe-trap=invalid,zero,overflow -fcheck=bounds -finit-real=snan -fbacktrace
36
37endif
38
39ifdef GPROF
40# Add gprof output
41DEBUGFLAGS += -pg
42endif
Note: See TracBrowser for help on using the repository browser.