tar -xvf scalapack-2.1.0.tgz
cd scalapack-2.1.0
cp SLmake.inc.example SLmake.inc
vim SLmake.inc
BLASLIB = /path/to/EXTRA/librefblas.a LAPACKLIB = /path/to/EXTRA/liblapack.a LIBS = $(LAPACKLIB) $(BLASLIB)
make -j
cp *.a /path/to/EXTRA/mathlib