Add tools.mk and a Makefile that uses it