The $MPW/Environment.text file contains environment variables used by some MPW programs. Particularly, header file locations are defined here. Additionally, variable expansion occurs during pathname conversion, so mpw Link ... {Libraries}ToolLibs.o works as expected.
The file format is:
Name may contains alphanumerics and underscores.
= assigns the value, overwriting any previous value.
+= appends the value to any previous value.
?= assigns the value if and only if the variable was not already assigned.
Variable Expansion
Variables are expanded within the value. Recognized forms are:
Example
Command line
Variables can also be defined as part of the mpw command. eg:
These variables are processed after internal variables are set ($MPW and $Command) but before the Environment.text file is loaded. This allows for fast switching between different versions of MPW headers and libraries: