--- trunk/Compilation/Compiler_options/ifort.mk 2014/09/11 15:09:15 107 +++ trunk/Compilation/Compiler_options/ifort_debug.mk 2014/09/16 14:00:41 108 @@ -1,10 +1,37 @@ # These are machine dependent macros, meant to be included in the # LMDZE makefile -# For ifort 9 +# For ifort 12 -FFLAGS = -I${libf_dir} -I${libf_dir}/dyn3d -I${libf_dir}/phylmd -I/home/guez/NetCDF/netcdf-3.6.1_ifort/include -I/home/guez/lib/IOIPSL/IOIPSL_t -I/home/guez/lib/Numerical_Recipes_Lionel/ifort -assume minus0 -check all -debug extended -debug-parameters all -error_limit 1 -fltconsistency -fpe0 -fpstkchk -ftrapuv -g -inline-debug-info -O0 -traceback -free -warn all -warn stderrors +netcdf_inc_dir = /smplocal/pub/NetCDF/4.1.3/seq/include +netcdf_lib_dir = /smplocal/pub/NetCDF/4.1.3/seq/lib -LDFLAGS = +numer_rec_95_dir = ${workdir}/lib/Numer_Rec_95_debug +nr_util_dir = ${workdir}/lib/NR_util_debug +netcdf95_dir = ${workdir}/lib/NetCDF95_debug +jumble_dir =${workdir}/lib/Jumble_debug -LDLIBS = -L/home/guez/NetCDF/netcdf-3.6.1_ifort/lib -L/home/guez/lib/IOIPSL/IOIPSL_t -L/home/guez/lib/Numerical_Recipes_Lionel/ifort -lioipsl -lnetcdf -lnumer_rec +# Include flags: +FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) + +# Optimization: +FFLAGS += -O0 + +# Floating Point: +FFLAGS += -fp-stack-check -fpe-all=0 + +# Debug: +FFLAGS += -debug -debug-parameters all -ftrapuv + +# Language: +FFLAGS += -free -noaltparam -assume minus0,noold_xor -check bounds,format,output_conversion,pointers,uninit -stand f95 + +# Data: +FFLAGS += -auto + +# Compiler Diagnostics: +FFLAGS += -warn declarations,interfaces,stderrors,truncated_source,uncalled,unused -traceback -diag-error-limit 1 + +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 + +version_flag = -V