cd src/


if [ "$UNAME" = CYGWIN ]; then
    export BINARY_PATH="$SAGE_LOCAL/bin"
    export INCLUDE_PATH="$SAGE_LOCAL/include"
    export LIBRARY_PATH="$SAGE_LOCAL/lib"
    cp -f win32/Makefile.gcc Makefile || \
        sdh_die "Error copying over zlib's Makefile for Cygwin."

    # We want to install shared objects
    sed -i 's/SHARED_MODE=0/SHARED_MODE=1/' Makefile
else
    sdh_configure --shared
fi

sdh_make
sdh_make_install
