Changeset 22 for trunk/SOURCES/Makefile


Ignore:
Timestamp:
11/25/15 20:33:43 (9 years ago)
Author:
roche
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/Makefile

    r5 r22  
    55#------------------------------------------- 
    66 
    7 include Fichiers-parametres/Makefile.tof-lsce3130.inc 
    8 #include Fichiers-parametres/Makefile.catritz-pc226.inc 
    9 # include Fichiers-parametres/Makefile.pc246.inc 
     7#------------------------------------------- 
     8# dmr: Added options for a more flexible Makefile with the two compilers inbedded 
     9#------------------------------------------- 
    1010 
     11# Choice for compiler (ifort = 1, gfortran = 0) 
     12ifort ?= 0 
     13 
     14# Choice for librairies (mkl_c = 1 = MKL,  = 0 = BLAS) 
     15# NOTA: mkl_c = 1 with ifort = 0 ignores the MKL and uses BLAS anyhow 
     16mkl_c ?= 1 
     17 
     18ifeq ($(ifort),1) 
     19  include Fichiers-parametres/Makefile.tof-lsce3130.inc 
     20else 
     21  include Fichiers-parametres/Makefile.dmr-lsce3027.inc 
     22endif 
    1123 
    1224#     Compilation (le corps du Makefile) 
    1325#------------------------------------------- 
    14 include Makefile.grisli.inc 
     26 
     27ifeq ($(ifort),1) 
     28  include Makefile.grisli.inc 
     29else 
     30  include Makefile.grisli-gfortran.inc 
     31endif 
Note: See TracChangeset for help on using the changeset viewer.