cd src

# Patching the upstream makefile doesn't make sense,
# as it has (syntactically) nothing in common with ours.
cp -f ../patches/makefile makefile || exit $?

export CFLAGS="-O2 -g $CFLAGS -fPIC -DFAST -DALLTRUE"

sdh_make
sdh_install libsymmetrica.a "$SAGE_LOCAL/lib"
sdh_install *.h "$SAGE_LOCAL/include/symmetrica"
