#!/bin/bash
# Definitions for the TAO package
# N. Gould, D. Orban & Ph. Toint, January 19th, 2013

# The name of the package
export PACKAGE=tao

# Subdirectory of ${CUTEST}/src where the package lives
export PACKDIR=tao

# Precision for which the package was written
# Valid values are "single", "double", "single double" and "double single"
export PACK_PRECISION="double"

# Define the name of any package object files used; any object file without
# a full path must occur in ${CUTEST}/objects/(architecture)/(precision)/
export PACKOBJS=""

# Define package and system libraries using -llibrary to include library.a
# or library.so together with any nonstandard library paths using -L(path)
export PACKLIBS="-Wl,-rpath,$PETSC_DIR/$PETSC_ARCH/lib \
 -L$PETSC_DIR/$PETSC_ARCH/lib \
 -Wl,-rpath,/usr/lib/x86_64-linux-gnu/openmpi/lib/fortran/gfortran \
 -L/usr/lib/x86_64-linux-gnu/openmpi/lib/fortran/gfortran \
 -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/11 \
 -L/usr/lib/gcc/x86_64-linux-gnu/11 \
 -lpetsc -lopenblas -lm -lX11 -lmpi_usempif08 -lmpi_usempi_ignore_tkr \
 -lmpi_mpifh -lmpi -lopen-rte -lopen-pal -lhwloc -levent_core \
 -levent_pthreads -lgfortran -lm -lz -lgfortran -lm -lgfortran -lgcc_s \
 -lquadmath -lstdc++ -lquadmath"

# Define the name of the package specification file if any. This possibly
# precision-dependent file must either lie in the current directory or in
# ${CUTEST}/src/${PACKDIR}
export SPECS="TAO.SPC"



