libm: makefile re-org