#
# ---------------------------------------------------------------------
# common definitions for Intel Linux/PGI, MPICH, real*8
# see http://www.pgroup.com  for Portland Group f90 compiler
# see http://www-unix.mcs.anl.gov/mpi/mpich  for MPICH
# ---------------------------------------------------------------------
#
# MACROS      DESCRIPTIONS:
#
# FC:         Fortran 90 compiler.
# FCFFLAGS:   Fortran 90 compilation flags.
# CC:         C compiler.
# CCFLAGS:    C compilation flags.
# CPP:        cpp preprocessor (may be implied by FC).
# CPPFLAGS:   cpp -D macro flags.
# LD:         Loader.
# LDFLAGS:    Loader flags.
# EXTRALIBS:  Extra local libraries (if any).
#

FC            = mpiifort #mpifort
#FCFFLAGS      =	-traceback -xAVX -O3 -fp-model precise -no-fma -ftz -align array64byte -r8 -warn nogeneral -diag-disable 10212 -mcmodel=large -shared-intel
FCFFLAGS      = -traceback -xAVX -fp-model precise -no-fma -ftz -align array64byte -r8 -warn nogeneral -diag-disable 10212 -mcmodel=large -shared-intel
CC            = mpicc ##icc
CCFLAGS       =	-traceback -xAVX -O -mcmodel=large -shared-intel
CPP           = cpp -P
CPPFLAGS      = -DIA32 -DREAL8 -DMPI -DENDIAN_IO -DNAN2003 -DTIMER -DRELO $(CPP_EXTRAS)

## ModificaÃÃo EGEON
#
#CPPFLAGS      += -I/opt/ohpc/pub/libs/intel/impi/hdf5/1.10.8/include -I/opt/ohpc/pub/libs/intel/impi/netcdf/4.7.4/include -I/opt/ohpc/pub/libs/intel/impi/netcdf-fortran/4.5.3/include
###################################################################

LD            = $(FC)
LDFLAGS       = $(FCFFLAGS)
EXTRALIBS     =


#
# --- generic make definitions
#
SHELL         = /bin/csh
RM            = \rm -f

#
# rules.
#

.c.o:
	$(CC) $(CPPFLAGS) $(CCFLAGS)  -c $*.c

.F90.o:
	$(FC) $(CPPFLAGS) $(FCFFLAGS) -c -convert big_endian $*.F90
