You can use macros in your environment settings, as shown in the following listing.
MyVAR=C:\test TEXTPATH=$(MyVAR)\txt OBJPATH=${MyVAR}\obj
In the example above, TEXTPATH expands to C:\test\txt and OBJPATH expands to C:\test\obj. You can use $() or ${}. However, you must define the referenced variable.
You may also use special variables when using macros. Always surround special variables with brackets {}. Special variables are case-sensitive. In addition, the variable content contains the directory separator ` \'. The special variables are:
Path of the executable one directory level up, if the executable file is C:\Freescale\prog\linker.exe, and the variable is C:\Freescale\.
Path of the current project file. Use this special variable if the current project file is C:\demo\project.ini, and the variable contains C:\demo\.
Path of your Windows system installation, for example, C:\WINNT\.