Move compare.c to TOOLS, add it to the Makefile and document it.