Building this one was a history lesson. I modeled it after xfig, which also uses imake.