To define the executable programs in your project
You define what programs get built in your project by adding a build file for each program. You can have multiple programs that are built as part of your project. These programs can be built at the same hierarchical level, or one program can be a child of another program.
If a program is a child of another program (i.e., it is lower in the hierarchy), the source files of the child will inherit default settings from the parent. However, the child's source files will be compiled and linked into a separate executable from the parent executable. For example, suppose you have a program build file, masterfoo.bld, at the top of your project's hierarchy. Lower in the hierarchy, you have fooaid.bld, the build file for a separate program. The source files contained in fooaid.bld inherit options from masterfoo.bld, but are compiled and linked into a separate executable, fooaid.out.
- Start the Builder from the project's directory.
- If you want to put the program at the top of your project's hierarchy, make sure default.bld is at the top of the Source pane.
- or -
If you want to put the program lower in your project's hierarchy, navigate until the program or subproject that will contain the new program is at the top of the Source pane.
- Click the Add button (
).
- In the file chooser, browse for a location to create your new build file. It is recommended to place the program's build file in the same directory as the source files for that program. When you have chosen a directory, type in the name of the build file to create. Usually, this will be the same name as the executable you wish to generate, but with a .bld extension. For example, if your executable is called masterfoo.out, call your build file masterfoo.bld.
- Click Add.
Related topic:
Copyright © 1999, Green Hills Software. All rights
reserved.