math: use separate makefile