rebiuld makefile structure and separate numeric library core