[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Creating Build-Target Dependencies

You can configure a build target to depend on other build targets. These dependencies are useful for enforcing a specific build order, so that the IDE builds certain build targets before others. For example, you could have a build target that depends on information in a second build target. In order to compile correctly, the IDE must build the second build target before the first build target.

To specify that a build target depends on a second build target, follow these steps:

1. Go to the Targets view of the Project window.

Click the Targets tab at the top of the Project window to display the Targets view.

2. Drag the second build target below and indented to the right of the first build target.

The IDE adds an italicized entry for the second build target within the first build-target group. This entry makes the first build target dependent on the presence of the second build target. Now, the IDE builds the second build target before attempting to build the first build target.

To link the first build target with object code from the second build target, follow these steps:

1. Click the Link column of the italicized entry for the second build target.

The italicized entry for the second build target resides within the first build-target group.

2. Note that the object code from the second build target appears in the Link Order view of the first build target.

With the first build target active, click the Link Order tab at the top of the Project window to display the Link Order view. Notice that the object code from the second build-target group now appears in the link order for the first build-target group.


NOTE

For Windows and Mac OS hosts, the object code from the second build-target group appears at the beginning of the link order. For Solaris and Linux hosts, the object code from the second build-target group appears at the end of the link order.

See "Creating a New Build Target" for information about creating new build targets in your projects.

See "Setting the Current Build Target" to learn how to set the current build target.

see "Strategy for Creating Complex Projects" to learn more about complex projects that use subprojects or multiple build targets.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000