Globals.com

Definition

Globals.com is a compilation description in which options and dependencies for all module files are specified. It can either be stored in $INSTROOT/sys/desc or in $INSTROOT/sys/src/Globals.

Use

VMAKE interprets for each module the corresponding compilation description to determine dependencies and options for these. If there are options or dependencies that apply to all module files, they do not have to be listed in each compilation description, they can be defined globally in Globals.com instead. The syntax is the same as for all other compilation descriptions.

Example

The $INSTROOT/sys/src/Globals/Globals.com file has the following entries:

*.cpp -OPT=-O2

For all C++ files, the optimization for the compilation is set to -O2.

*p dep=:ptoc/ptoc_h

All Pascal files are dependent on the src/ptoc/ptoc_h module file.