spmatrix: more makefile work. working better now. not perfect yet