## Site-dependent definitions included in Makefiles

## !!! Also check external_functions/ef_utility/site_specific.mk !!!

## =========================
## Full path name of the directory containing this file (the ferret root directory).
## Do not use $(shell pwd) since this is included in Makefiles in other directories.
## =========================
# DIR_PREFIX = $(HOME)/build/trunk/FERRET
DIR_PREFIX = $(HOME)/git/Ferret
# DIR_PREFIX = $(HOME)/svn/ferret

## =========================
## Machine for which to build Ferret.
## Use $(HOSTTYPE) to build natively for the machine you are using.
## =========================
# BUILDTYPE = $(HOSTTYPE)
BUILDTYPE = x86_64-linux
# BUILDTYPE = i386-linux
# BUILDTYPE = intel-mac

## =========================
## Installation directory for built Ferret using the "install" Makefile target.
## This Makefile target circumvents the need to create the fer_*.tar.gz files
## just for creating a Ferret installation.
## =========================
# INSTALL_FER_DIR = $(HOME)/ferret_distributions/rhel6_64
INSTALL_FER_DIR = $(HOME)/Ferret
# INSTALL_FER_DIR = $(FER_DIR)

## =========================
## C and Fortran compilers to use.  The construct "$(shell which gcc)" assigns
## the response to "which gcc" run from a Bourne shell (such as bash).
## When compiling for Mac OS X, one may wish to use clang instead of gcc.
## If you wish to use values already defined in you shell environment when 
## you run make, comment out all definitions of CC and FC (do NOT leave blank).
## =========================
# CC = $(shell which clang)
CC = $(shell which gcc)
FC = $(shell which gfortran)

## =========================
## Directory containing the HDF5 static libraries.
## If given and not empty, HDF5 and NetCDF static libraries will be used.
## If empty or not given, NetCDF shared-object libraries (which specify the
## HDF5, SZ, and Z compression libraries required) will be used.
## =========================
HDF5_LIBDIR = /usr/local/hdf5/lib
# HDF5_LIBDIR = $(HOME)/.local/lib
# HDF5_LIBDIR = /usr/local/lib
# HDF5_LIBDIR = /usr/lib64
# HDF5_LIBDIR = /usr/lib
# HDF5_LIBDIR =

## =========================
## Location of the SZ compression static library.
## This value should be given only if the SZ compression library was used in
## building the HDF5 library, and the NetCDF and HDF5 static libraries are
## being used (HDF5_LIBDIR is specified).
##
## If given and not empty, and if HDF5_LIBDIR is given and not empty, the SZ
## compression static library is used.
##
## If empty or not given, and if HDF5_LIBDIR is given and not empty, the SZ
## compression library will not be used, which is what you want if the HDF5
## libraries were built using the Z compression library.
## =========================
# SZ_LIBDIR = $(HOME)/.local/lib
# SZ_LIBDIR = /usr/local/lib
# SZ_LIBDIR = /usr/lib64
# SZ_LIBDIR = /usr/lib
SZ_LIBDIR =

## =========================
## Location of the NetCDF libraries.
## Include files are assumed to be located in an "include" sibling directory.
## If HDF5_LIBDIR is given and not empty, the static libraries will be used.
## If HDF5_LIBDIR is empty or not given, NetCDF shared-object libraries will be used.
## =========================
NETCDF_LIBDIR = /usr/local/netcdf/lib
# NETCDF_LIBDIR = $(HOME)/.local/lib
# NETCDF_LIBDIR = /usr/local/lib
# NETCDF_LIBDIR = /usr/lib64
# NETCDF_LIBDIR = /usr/lib

## =========================
## Directory containing the (GNU) readline static libraries.
## Include files are assumed to be located in an "include" sibling directory.
##
## If the readline provided by the system is not actually (GNU) readline (e.g.;
## on Mac, where it is actually editline), it may not have the ability to specify
## a function to repeatedly call while waiting for user input (the rl_event_hook).
## Ferret uses this ability to keep plot windows refreshed and responsive, so in
## this case, an actual GNU readline (and history) static library must be built
## and installed.
##
## If the readline provided by the system does provide this required functionality
## (i.e; is GNU readline, which is the case for most Linux systems), do not define
## this value (or leave it blank).  In this case the system's readline and history
## shared-object libraries will be used.
## =========================
# READLINE_LIBDIR = $(HOME)/.local/Cellar/readline/8.0.4/lib
# READLINE_LIBDIR = /usr/local/Cellar/readline/8.0.4/lib
READLINE_LIBDIR =

##
