02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

Figure 4-10<br />

Source File Property Sheet<br />

4.2.4 Building a Downloadable Application<br />

The project facility uses the GNU make utility to automate compiling and linking<br />

an application. 5 It creates a makefile automatically prior to building the project.<br />

But before it can create a makefile, the makefile dependencies must be calculated.<br />

The calculation process, which is based on the project files’ preprocessor #include<br />

statements, is also an automated feature of the project facility.<br />

Binaries produced by a given build are created in a project subdirectory with the<br />

same name as the name of the build specification (projectName/buildName).<br />

NOTE: All source files in a project are built using a single build specification<br />

(which includes a specific set of makefile, compiler, and linker options) at a time.<br />

If some of your source requires a different build specification from the rest, you can<br />

create a project for it in the same workspace, and customize the build specification<br />

for those files. One project’s build specification can then be modified to link in the<br />

output from the other project. See Linker Options, p.134.<br />

NOTE: The project facility allows you to create specifications for different types of<br />

builds, to modify the options for any one build, and to easily select the build<br />

specification you want to use at any given time. See 4.5 Working With Build<br />

Specifications, p.128.<br />

5. See the GNU Make User’s Guide for more information about make.<br />

104

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!