source: trunk/SOURCES/Fichiers-parametres/Makefile.dmr-lsce3027.inc @ 22

Last change on this file since 22 was 22, checked in by roche, 8 years ago

Petites adaptations diverses du code pour compilation en gfortran. Ajout d un Makefile flexible a option pour choisir ifort ou gfortran.

File size: 1.4 KB
Line 
1# Makefile de GRISLI - compilo et options pour Cat (pc-226)
2# FT options de compilation
3# LK options de link
4
5# Rappel de quelques options interessantes
6#-------------------------------------------
7# faire imperativement attention a l'arithmetique
8# -fpe0 s'arrete sur les floating point exception (sauf underflow)
9# -CB  Performs run-time checking on array subscript and character substring expressions
10# -g pour debug
11# -pg pour le profiling
12# -traceback permet de connaitre la ligne qui plante
13
14# faire man ifort pour plus d'infos
15
16# le directory dans lequel sont les compilateurs et MKL
17# DIRLOCAL=/usr/local variable d'environnement a definir dans .bash_profile
18
19debug ?= 0
20
21# lit le nom du fichier param pour lancer sur r2d2 par une commande :   echo jobparam | LBQ....
22
23JOB = 'job'
24
25LIBSYS = /usr/lib
26INCSYS = /usr/include
27
28# librairies
29
30NCDF_INC  = $(INCSYS)
31NCDF_LIB  = -L$(LIBSYS) -lnetcdff -lnetcdf
32
33IFORT= gfortran
34
35ARITHMi    = -O2 -ffree-line-length-none -mtune=native -mfpmath=sse
36
37ifeq ($(debug), 1)
38    ARITHM  = $(ARITHMi) -g -pg -Wall -fno-align-commons -p -ggdb -ffpe-trap=invalid,zero,overflow,underflow -fbacktrace -fcheck=all
39else
40    ARITHM = $(ARITHMi)
41endif
42
43
44# debug : -g -CB -fp-stack-check -check all
45FT        = $(IFORT) $(ARITHM) -c
46LK        = $(IFORT) $(ARITHM)
47F_NETCDF  = $(IFORT) $(ARITHM) -c -I$(NCDF_INC)
48F_90      =
49
50# The End of All Things (op. cit.)
Note: See TracBrowser for help on using the repository browser.