Commit 302bd888 authored by kbk's avatar kbk
Browse files

new scheme for chosing Fortran compiler

parent ab7a36b2
#$Id: compiler.DECFOR,v 1.1 2003-04-07 12:02:01 kbk Exp $
#
# Set options for the Compaq fort compiler - on alphas.
ifeq ($(FORTRAN_COMPILER),DECFOR)
FC=f90
DEFINES += -DFORTRAN95
can_do_F90=false
can_do_F90=true
MODULES=-module $(MODDIR)
EXTRAS =
DEBUG_FLAGS = -g -arch host -check bounds -check overflow -check nopower -check underflow -std90 -assume gfullpath
DEBUG_FLAGS = -g -arch host -check bounds -check overflow -check nopower -assume gfullpath
PROF_FLAGS = -pg -O
PROD_FLAGS = -O -fast -inline speed -pipeline
#PROD_FLAGS = -O -fast -inline speed -unroll 1 -pipeline
REAL_4B = real\(4\)
endif
#$Id: compiler.FUJITSU,v 1.1 2003-04-07 12:02:01 kbk Exp $
#
# Set options for the Fujitsu compiler - on Linux/Intel and SunOS.
ifeq ($(FORTRAN_COMPILER),FUJITSU)
FC=frt
can_do_F90=true
DEFINES += -DFORTRAN95
MODULES=-Am -M$(MODDIR)
EXTRAS = -ml=cdecl -fw
EXTRAS = -fw
DEBUG_FLAGS = -g -H aeus
PROF_FLAGS = -pg -O3
PROD_FLAGS = -O -K fast
REAL_4B = real\(4\)
endif
#$Id: compiler.IFC,v 1.1 2003-04-07 12:02:01 kbk Exp $
#
# Set options for the Intel Fortran 95 compiler.
ifeq ($(FORTRAN_COMPILER),IFC)
FC=/opt/lam-6.5.9/bin/mpif77
FC=ifc
DEFINES += -DFORTRAN95
can_do_F90=true
F90_to_f90=$(FC) -E $(F90FLAGS) $(EXTRA_FFLAGS) $< > $@
F90_to_f90=
MODULES=
MODULES=-module $(MODDIR)
EXTRAS = -w95 -e95 -static
DEBUG_FLAGS = -g -C
PROF_FLAGS = -qp -p
PROD_FLAGS = -O3 -mp
REAL_4B = real\(4\)
EXTRA_LIBS += -lPEPCF90 -lpthread
endif
#$Id: compiler.NAG,v 1.1 2003-04-07 12:02:01 kbk Exp $
#
# Set options for the NAG Fortran compiler.
ifeq ($(FORTRAN_COMPILER),NAG)
FC=f95nag
DEFINES += -DFORTRAN95
can_do_F90=true
MODULES=-mdir $(MODDIR)
EXTRAS = -f77
DEBUG_FLAGS = -g -C=all -O0
PROF_FLAGS = -pg -O3
PROD_FLAGS = -O3
REAL_4B = real*4
endif
#$Id: compiler.PGF90,v 1.1 2003-04-07 12:02:01 kbk Exp $
#
# Set options for the Portland Group Fortran 90 compiler.
ifeq ($(FORTRAN_COMPILER),PGF90)
FC=pgf90
DEFINES += -DFORTRAN90
can_do_F90=false
can_do_F90=true
F90_to_f90=$(FC) -E $(F90FLAGS) $(EXTRA_FFLAGS) $< > $@
MODULES=-module $(MODDIR)
EXTRAS =
DEBUG_FLAGS = -g -Ktrap=fp -Mbounds
PROF_FLAGS = -Mprof=func
PROD_FLAGS = -fast
REAL_4B = real\(4\)
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment