# macro.jade for jade at CINES
#  $Rev$
#  $Date$
#  $Id$
# -------------------------------------------------------------
#
NCDF= -I/opt/software/SGI/netcdf/4.0/include -L/opt/software/SGI/netcdf/4.0/lib -lnetcdff -lnetcdf
#NCDF= -I/opt/software/SGI/netcdf/4.1.3/include -L/opt/software/SGI/netcdf/4.1.3/lib -lnetcdff -lnetcdf
#NCDF = -I/opt/software/SGI/netcdf/netcdf-4.2_hdf5_1.8.9/include -L/opt/software/SGI/netcdf/netcdf-4.2_hdf5_1.8.9/lib -lnetcdff -lnetcdf
#HDF5 = -I/opt/software/SGI/hdf5/1.8.9/include -L/opt/software/SGI/hdf5/1.8.9/lib -lhdf5 -lhdf5_fortran
#HDF5 = -I/opt/software/SGI/hdf5/1.8.9-intelmpi/lib/include -L/opt/software/SGI/hdf5/1.8.9-intelmpi/lib -lhdf5 -lhdf5_fortran

F90=ifort
MPF90=mpif90
#OMP= -openmp
OMP=
#NC4 = -D key_netcdf4
NC4 =

#CMIP6 = -D key_CMIP6
CMIP6 =

# flag static is used to allow the use of CDFTOOLS in parallel with mpi_metamon
#FFLAGS= -O  $(NCDF) $(NC4) $(CMIP6) -assume byterecl -convert big_endian -CB -fpe0 -g -traceback -ftrapuv

FFLAGS= -static -O2  $(NCDF) $(NC4) $(CMIP6)  -assume byterecl -convert big_endian $(OMP)
#FFLAGS= -O2 $(NC4) $(CMIP6) -xSSE4.1 -ip -ftz -fpe3 -fno-alias -sox $(NCDF)  -assume byterecl -convert big_endian 
#FFLAGS= -static $(NC4) $(CMIP6) -O  $(NCDF) -assume byterecl -convert big_endian -g -traceback -fpe0 -ftrapuv -CB
#FFLAGS= -O  $(NCDF) $(NC4) $(CMIP6) -assume byterecl -convert big_endian -g -traceback -fpe0 -ftrapuv -CB

LMPI=-lmpich

#-O3 -xSSE4.1 -ip -ftz -fpe3 -fno-alias -sox

INSTALL=$(WORKDIR)/bin
INSTALL_MAN=$(WORKDIR)/man
