# Makefile de GRISLI - compilo et options pour Cat (pc-226) # FT options de compilation # LK options de link # Rappel de quelques options interessantes #------------------------------------------- # faire imperativement attention a l'arithmetique # -fpe0 s'arrete sur les floating point exception (sauf underflow) # -CB Performs run-time checking on array subscript and character substring expressions # -g pour debug # -pg pour le profiling # -traceback permet de connaitre la ligne qui plante # faire man ifort pour plus d'infos # le directory dans lequel sont les compilateurs et MKL # DIRLOCAL=/usr/local variable d'environnement a definir dans .bash_profile # librairies NCDF_INC = $(NETCDFHOME)/include NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf #MKL_LIB = -L$(DIRLOCAL)/intel/mkl9/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread MKL_LIB = -L$(DIRLOCAL)/intel/mkl10/lib/32 -lmkl -lguide -lpthread # -lmklapack export $MKL_LIB #IFORT = $(DIRLOCAL)/intel/compiler9/bin/ifort IFORT = $(DIRLOCAL)/intel/compiler10/bin/ifort ARITHM = -O2 -fp-model precise -heap-arrays # options pour une meilleure arithmetique (normalement reproductible) #ARITHM = -fp-model precise -warn all -CU -CA # options pour une meilleure arithmetique (normalement reproductible) # ARITHM = -03 # trop brutal ne pas utiliser FT = $(IFORT) $(ARITHM) -c -fpe0 -traceback -CB -g #-pg # -g # -pg -ipo !aurel : j'ai enleve -CB LK = $(IFORT) $(ARITHM) -i_dynamic -fpe0 -traceback -CB -g #-pg #-g # -pg F_NETCDF = $(IFORT) $(ARITHM) -c -fpe0 -I$(NCDF_INC) -traceback -CB -g #-pg -ipo # -g FT = $(IFORT) $(ARITHM) -c -fpe0 -I$(NCDF_INC) -traceback -CB -g #-pg -ipo # -g