common makefile (bug 1092158)