inlined math
removed dir, math from makefile