You see, people name the file README for a very particular purpose… you are missing some stuff for your “imake” command: here is a quote from the README:
The Imakefile should generate a good Makefile with a simple
command such as:
% imake -DUseInstalled -I/usr/lib/X11/config