/[lmdze]/trunk/Compilation/Compiler_options/gfortran_debug.mk
ViewVC logotype

Diff of /trunk/Compilation/Compiler_options/gfortran_debug.mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/Compilers/gfortran.mk revision 47 by guez, Fri Jul 1 15:00:48 2011 UTC trunk/Compilers/gfortran_debug.mk revision 78 by guez, Wed Feb 5 17:51:07 2014 UTC
# Line 1  Line 1 
1  # These are compiler dependent macros, meant to be included in the  # These are compiler dependent macros, meant to be included in the
2  # makefile for LMDZE.  # makefile for LMDZE.
3    
4  FC = gfortran  netcdf_inc_dir = /usr/include
5    netcdf_lib_dir =
6    
7  netcdf_inc_dir = /user/guez_local/include /user/guez_local/include/Gfortran  numer_rec_95_dir = /user/guez_local/lib/Numer_Rec_95_gfortran_debug
8  netcdf_lib_dir = /user/guez_local/lib  nr_util_dir = /user/guez_local/lib/NR_util_gfortran_debug
9    netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran_debug
10  numer_rec_dir = /user/guez_local/lib/Numer_Rec_Lionel_b  jumble_dir = /user/guez_local/lib/Jumble_debug
 nr_util_dir = /user/guez_local/lib/NR_util_j  
 netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran  
 l_util_dir = /user/guez_local/lib/L_util  
11    
12  # Include flags:  # Include flags:
13  inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/phylmd ${netcdf_inc_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir} ${l_util_dir})  FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir})
14    
15    # Fortran language options:
16    FFLAGS += -std=f95
17    
18    # Error and warning options:
19    FFLAGS += -fmax-errors=1 -pedantic-errors -Wall -Wcharacter-truncation -Wimplicit-interface -Wunderflow -Wextra -Wunreachable-code
20    
21    # Debugging options:
22    FFLAGS += -ffpe-trap=invalid,zero,overflow -fbacktrace -fdump-core -g
23    
24    # Code generation options:
25    FFLAGS += -fcheck=bounds -fcheck=do -fcheck=mem -fcheck=pointer -fcheck=recursion -finit-real=SNAN
26    
27  # Other flags which do not affect run time performance:  # Optimization options:
28  lang_flags = -ffree-form -frange-check -std=f95 -pedantic-errors -Wall -Wunderflow -Wextra  FFLAGS += -O0
29    
30  # Flags which affect run time performance:  F90FLAGS = ${FFLAGS}
 perf_flags = -fbacktrace -ffpe-trap=invalid,zero,overflow -fbounds-check -g3 -O0 -fstack-protector-all  
31    
32  FFLAGS = ${inc_flags} ${perf_flags}  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) -ljumble -lnetcdf95 -lnetcdff -lnetcdf -lnumer_rec_95 -lnr_util
 F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags}  
33    
34  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir} ${l_util_dir}) -ll_util -lnetcdf95 -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lnumer_rec -lnr_util  version_flag = --version

Legend:
Removed from v.47  
changed lines
  Added in v.78

  ViewVC Help
Powered by ViewVC 1.1.21