Makefile directives control the makefile lines omake reads at read time. The following makefile uses conditional directives (%if, %elif, %else, and %endif) to support both Borland and Microsoft compilers. Comments have been added for documentation.
The layout of this makefile is fairly traditional; macros are defined first, and the primary target follows the macros.
This example also uses the %abort directive to abort omake if the makefile does not support a particular compiler. Directives can also be used at run time, to control the build scripts omake executes. For more information, see Makefile Directives.
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |