Here's the Makefile.common that I use.

Andreas