#
#  change compiler, options and libraries according to your needs
#
#########
#  Ubuntu gfortran
#########
#
# modules and libraries
#

#... MPI
MPI_INC  = -I$(HOME)/opt/openmpi/include
MPI_LIB  = -L$(HOME)/opt/openmpi/lib 

#... netCDF
NC_INC  = -I$(HOME)/opt/netcdf_fort/include 
NC_LIB  = -L$(HOME)/opt/netcdf/lib -lnetcdf  -L$(HOME)/opt/netcdf_fort/lib  -lnetcdff
NC_LIB  += -L$(HOME)/opt/hdf5/lib -lhdf5_hl -lhdf5 

#... GRIB
#
GRIB_LIB =

#... other libs, if needed on the computer system (e.g. mathematical packages)
OTHLIBS1=

# standard binary
PROGRAM      = bin/int2lm.exe

# compiler, options and libraries
F90          = $(HOME)/opt/openmpi/bin/mpif90

CPPFLAGS     = -DNETCDF  # separator is compiler dependend (e.g. comma or blank)

COMFLG        = -c -cpp -O2 $(CPPFLAGS) -I. -I$(SRCDIR) $(MPI_INC) ${NC_INC}  
COMFLG1     = $(COMFLG)
COMFLG2     = $(COMFLG)
COMFLG3     = $(COMFLG)
COMFLG4     = $(COMFLG)

LDSEQ        = $(HOME)/opt/openmpi/bin/mpif90
LDPAR        = $(HOME)/opt/openmpi/bin/mpif90
LDFLG        = -I$(SRCDIR)
LIB         = ${GRIB_LIB} ${NC_LIB} ${MPI_LIB} ${OTHLIBS1}

