#
#  $Author: pkubota $
#  $Date: 2007/10/10 20:24:23 $
#  $Revision: 1.1 $
#
# $Id: Makefile.linux,v 1.1 2007/10/10 20:24:23 pkubota Exp $
#

#
# INTEL COMPILER - WORKING
#
# Sometimes ifort fails to statically link the executable with
# optmization giving and error message like:
#   ifort: error: problem during multi-file optimization compilation (code 1)
# Here we adopt the safe procedure of passing -O0 to LOADFLAG
# 
AR=ar
ARFLAGS = 
F90=gfortran
FFLAGS=-g -fconvert=big-endian -fcheck=all  -Wall -Wextra  -fbacktrace -ffpe-trap=invalid,overflow,zero  -finit-real=nan -finit-integer=nan   -ffree-line-length-none ${OPENMP} -O0 
CC = gcc
# If there is a version difference between your gcc and the gcc
# used to compile the ifort binary, you may have to add a flag
# like -gcc-version=400 do CFLAG
CFLAGS = -DLINUX 
LOADFLAG=

include Makefile.common
