You are encouraged to try to use the Imakefile in the source directory first. If that fails, though, here's something you can work with by hand.