TITLE: How to generate external dependencies in Tornado 2.0?

DESCRIPTION:

How can I generate external dependencies in Tornado 2.0? I have
two directories, source_code (where all the source codes are) and
header (where all the header files are). I add all the source and
header files into the downloadable project, then select "Dependencies"
from the workspace context menu. All the header files are shown in the
"external Dependencies" folder in the "Files" view of the workspace
window. Then I click the "Build Project" from the tool bar, I got
the following error message:

make: *** No rule to make target `bee.h', needed by `bee.o'. Stop.

Why does the build fail?

SUGGESTION:

The following procedures will generate a correct dependencies in
order to build the object modules.


Step 1: Add C/C++ compiler option "-I" in the build specification

To display the build specification, double-click on the build name
in the "Build" view of the workspace to display the property sheet
for the build. Then, select the "C/C++ compiler" tab of the build
specification property sheet to view the compiler options.

Add another option in the text box: -Idirectory_path_of_the_header_files

For example: -IE:\header -IE:\header2

Each directory path requires a separated "-I" option.  

Be sure to include a -I.. as the last of the I options so that the 
compiler will look in the local directory as well.  It should be 
the last option.


Step 2: Add makefile macro "VPATH" in the build specification

Select the "Macros" tab of the build specification property sheet
to view the makefile macros associated with the current project.
Add the new macro VPATH by changing the name of an existing macro.
Replace the value of the existing macro by the search path(s) of
the header files, separated by spaces.

For example: E:\header1 E:\header2

Then click the "Add/Set" button and the "OK" button.


Step 3: Rebuild the dependencies

Select "Dependencies" from the workspace context menu and click
the OK button to rebuild the dependencies.


Step 4: Rebuild the object modules/application

You can now click "ReBuild All" button in the tool bar to rebuild
the object modules/application. The new compiler option "-I" will
be pulled into the dependencies and the compiler will search the
specified directories for the header files. 

