Imakefiles are highly flexible in dealing with different sites and configurations. It has been suggested that wxWindows makefiles should be Imakefiles. Perhaps one day!
Meanwhile, Patrick Albert's Imake kit is in /pub/packages/wxwin/contrib as imake.zip. Note that it is not up to date with respect to wxWindows, but should give a head start in using Imakefiles.