#! /bin/csh
#---------------------------------------------------------------------------										
# install_toolslib: Compile and install ZM's tools library.
#
# Usage: ./install_toolslib
#---------------------------------------------------------------------------

# Set environment variables
source ./set.sh make

# Go into the tools library directory.
pushd toolslib > /dev/null

# Compile the parsing library.
echo ""
echo "### ----------------------------------------------------"
echo "### Making and installing the parsing library ..."
echo "### ----------------------------------------------------"

pushd parse > /dev/null
make new
make install
popd > /dev/null

# Compile the SDS library.
echo ""
echo "### ----------------------------------------------------"
echo "### Making and installing the SDS library ..."
echo "### ----------------------------------------------------"

pushd sds > /dev/null
make new
make install
popd > /dev/null

# Create links to the include files.
echo ""
echo "### ----------------------------------------------------"
echo "### Creating links to include files ..."
echo "### ----------------------------------------------------"

./create_links

# Return to the original directory.
popd > /dev/null
