You can use macros to modify the way the project system refers to files.

Macros are divided into four classes:

System macros

System macros are defined by CrossStudio itself and as such are read-only. System macros can be used in project properties, environment settings and to refer to files. See System macros list for the list of System macros.

Global macros

To define a global macro:
  1. Choose Project > Macros.
  2. Select the Global tab.
  3. Set the macro using the syntax name = replacement text.

Project macros

To define a project macro:
  1. Choose Project > Macros.
  2. Select the Project tab.
  3. Select the solution or project to which the macro should apply.
  4. Set the macro using the syntax name = replacement text.

Alternatively, you can set the project macros from the Properties window:

  1. Select the appropriate solution/project in the Project Explorer.
  2. In the Properties window's General Options group, select the Macros property.
  3. Click the ellipsis button on the right.
  4. Set the macro using the syntax name = replacement text.

Build macros

Build macros are defined by the project system for a build of a given project node. See Build macros list for the list of build macros.

Using macros

You can use a macro for a project property or environment setting by using the $(macro) syntax. For example, the Object File Name property has a default value of $(IntDir)/$(InputName)$(OBJ).