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

Diff of /trunk/Compiler_options/gfortran_debug.mk

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

trunk/Compilers/gfortran.mk revision 36 by guez, Thu Dec 2 17:11:04 2010 UTC trunk/Compiler_options/gfortran_debug.mk revision 134 by guez, Wed Apr 29 15:47:56 2015 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  numer_rec_95_dir = ${HOME}/User_install/lib/Numer_Rec_95_debug
8  netcdf_lib_dir = /user/guez_local/lib  nr_util_dir = ${HOME}/User_install/lib/NR_util_debug
9    netcdf95_dir = ${HOME}/User_install/lib/NetCDF95_debug
10  numer_rec_dir = /user/guez_local/lib/Numer_Rec_Lionel_b  jumble_dir = ${HOME}/User_install/lib/Jumble_debug
 nr_util_dir = /user/guez_local/lib/NR_util_j  
 netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran  
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})  FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir})
14    
15    # Fortran language options:
16    FFLAGS += -ffree-form -std=f95
17    
18    # Error and warning options:
19    FFLAGS += -fmax-errors=1 -pedantic-errors -Wall -Wcharacter-truncation -Wunderflow -Wunreachable-code -Wno-conversion
20    
21    # Debugging options:
22    FFLAGS += -ffpe-trap=invalid,zero,overflow -fbacktrace -fdump-core -g
23    
24  # Other flags which do not affect run time performance:  # Code generation options:
25  lang_flags = -ffree-form -frange-check -std=f95 -pedantic-errors -Wall -Wconversion -Wimplicit-interface -Wunderflow -Wextra -Wunreachable-code  FFLAGS += -fcheck=bounds -fcheck=do -fcheck=mem -fcheck=pointer -fcheck=recursion -finit-real=SNAN
26    
27  # Flags which affect run time performance:  # Optimization options:
28  perf_flags = -fbacktrace -ffpe-trap=invalid,zero,overflow -fbounds-check -g3 -O0 -fstack-protector-all  FFLAGS += -O0
29    
30  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}  
31    
32  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir}) -lnetcdf95 -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lnumer_rec -lnr_util  version_flag = --version

Legend:
Removed from v.36  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.21