| |||
| Home > Customizing Projects > Customizing the build > Running the custom build | |||
You can control the build using the Use_as settings
value, shown in Figure 5.10. Right-click
on the setting to see the available options:
RealView Debugger ensures that it is up-to-date when building the application. This is the default.
Creates an object file or library which is then linked to the application built by the project.
Makes the file a named target. This means that other files must be dependent on it for it to be used.
Use this option to create a header or source file, that is
a .c or .asm file, that
is then compiled or assembled in a COMPILE or ASSEMBLE group.
The make utility knows to build the header or
source file before building the application with it.
You can also layer custom projects in this way with the output of one project used as the input of another.
Specifies that the file is built only after linking.
You can force a CUSTOM rule to run every
time that you build the application by referring to a file that
does not exist. For example, in the steps in Adding a custom build group, you could have
specified that the file was called version but
still written to version.txt. This causes the CUSTOM rule
to be executed each time you build the application because the make utility
decides that the file called version does not
exist and so tries to build it.
To undo this change and restore the build model:
Select Project → Project Properties... to display the Project Properties window.
Right-click on the *CUSTOM=MY_GROUP group
in the List of Entries pane, and select Delete from
the context menu.
Select File → Save and Close to regenerate the makefile(s) for the project, and close the Project Properties window.
Select Tools → Build... to rebuild the application.