# Note: this is a TEMPORARY (12/24) arch to resolve an issue linked to paths in ORCHIDEE archs
# It's just a copy of X64_JEANZAY so that the installer uses the LMDZ arch rather than the ORCHIDEE's base arch

NETCDF_INCDIR="-I$(nf-config --includedir) -I$(nc-config --includedir)"  # nc required for xios
# Ugly hack for orchidee <=2.0
NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")"
NETCDF_LIB="-lnetcdff -lnetcdf"
NETCDF95_INCDIR="-I$(pwd)/../../include"
NETCDF95_LIBDIR="-L$(pwd)/../../lib"
NETCDF95_LIB="-lnetcdf95"

# Exported
IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib"
IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib"
IOIPSL_LIB="-lioipsl"

# Exported
XIOS_INCDIR="-I$(pwd)/../XIOS/inc"
XIOS_LIBDIR="-L$(pwd)/../XIOS/lib"
XIOS_LIB="-lxios -lstdc++"

# Exported
ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib"
ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib"
ORCH_LIB=

#
OASIS_INCDIR="-I$(pwd)/../../oasis3-mct/BLD/build/lib/psmile.MPI1"
OASIS_LIBDIR="-L$(pwd)/../../oasis3-mct/BLD/lib"
OASIS_LIB="-lpsmile.MPI1 -lscrip -lmct -lmpeu"

#
INCA_INCDIR="-I$(pwd)/../INCA/build/inc"
INCA_LIBDIR="-L$(pwd)/../INCA/build/lib"
INCA_LIB="-lchimie"