The imake tool is not discussed in detail in this document. ChorusOS 4.0 Introduction provides information on:
imake files (Imake.tmpl, Imake.rules, Project.tmpl and Package.rules)
imake packaging rules
imake build rules
examples of how to use the imake tool
The imake files are located in the <bin_dir>/tools/imake directory.
If you are using the imake tool, you do not use the merging operation described in Chapter 4, Building with mkmk. Instead, imake uses the VPATH variable, which is found in recent versions of make. This means that you can find the source files, regardless of where these directories are located.
Components built with imake, such as DRV, DRV_F and BSP, export their public information through packaging rules.
With the imake tool you can write applications and adapt your system to a new board by using the boot and driver code provided in the board support package.
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.
Target | Description |
all | default target, build everything |
Makefile | rebuild the Makefile in the current directory |
Makefiles | rebuild the Makefiles (recursively) |
clean | remove produced files (recursively) |
depend | generate dependencies (recursively) |