8. Imake   

  $(TOP) in the document refers  to  the  top  level

directory of the X Window System source tree.
On the Silicon Graphics System it is /usr/lib/X11

Imake3 is a tool for (See footnote) generating Makefiles4 for large software distributions. (See footnote) Imake uses the C preprocessor on macro-makefiles (called Imakefiles) to generate Makefiles. It uses a predefined template file for default values and macros. The imake program is part of, and used by the X Window System software distribution. (The following description uses fragments from the X Window System distribution as examples --- you might want to look at the files in $(TOP)/config for more detailed information. The source code for imake is in $(TOP)/util/imake, and includes a sample.rules file as well as a manual page)

The following topics are discussed:


Why Imake
A simple example
Generating the Makefile for the first time
The Imake template
Simple Imakefiles
Miscellaneous
History
Gotchas
Imake Variables
Surprise!!

All the tutorials will use an Imakefile.