ChorusOS 4.0 Production Guide

imake files

An Imakefile is a machine-independent description of the targets you want to build. In the first step of the build process, the imake tool generates a Makefile from each Imakefile, by selecting the configuration files with dependencies appropriate to your target system. This has the advantage that the Imakefile is a machine-independent description of the targets you want to build and so it is portable.

To produce Makefiles, imake uses the top level Project.tmpl file, and the Imakefile contained in each subdirectory. It produces Makefile dependencies which are then written into the Makefile.

If files are altered they must be rebuilt. For the imake tool within the ChorusOS operating system, only dependencies between source and binary files are taken into account when altered files are rebuilt.