HP Integrity NonStop H-Series User Manual
Page 27

You will need to create your own directory, sources, and makefile.
Creating a local makefile project from existing sources
This section provides an example of creating a makefile project from existing sample sources for
a simple application named Car. You can get the sources for Car by unzipping the following file:
eclipse install directory\plugins\com.hp.nsdee_3.0.n\Examples.zip
The following example assumes you unzipped Examples.zip to C:\Examples, but you can
use whatever location you prefer.
To create a local makefile project from sources for Car, perform the following steps from the
NonStop Development perspective:
1.
Select New > Makefile Project with Existing Code from the context menu of the NonStop Project
Explorer view. This will open the Import Existing Code wizard.
2.
In the Import Existing Code wizard, do the following:
a.
Enter the name MakeCar for your project in the Project name: field
b.
Enter the following location in the Existing Code Location field:
C:\Examples\CarWithMakefile
c.
The Tools root: combo box should already be seeded with the location of cross compilers
and tools for a particular RVU. If not, refer to
“Adding cross compiler locations” (page 62)
.
d.
Specify either a Cygwin or Msys bin using the Cygwin/Msys bin: combo box if you
want NSDEE to prepend the corresponding bin to PATH before builds.
e.
Leave the Set COMP_ROOT and update PATH based on tools root above selected so that
the COMP_ROOT environment variable will be set to the Tools root: selection.
3.
Select Finish.
You should now see your MakeCar project in the NonStop Project Explorer view. If you open the
MakeCar project folder, you will see an Includes directory (a link to the system headers available
from the cross compilers and tools), a headers directory (containing header files for the project),
and a src directory (containing the rest of the sources for the project).
There should also be .project and .cproject files in the MakeCar folder, but these are not
visible by default.
To view them:
1.
Select Filters... from the local pull-down menu for the NonStop Project Explorer view to open
the C Element Filters dialog.
2.
In the C Element Filters dialog, deselect .*resources.
3.
Select OK.
Later, you can return to the C Element Filters dialog to hide .project and .cproject again,
if desired. The .project and .cproject files define attributes of the MakeCar project, including
any customizations you make. If you save your projects in a Source Configuration Management
system, it is important to save these files in addition to your source code. For information about
Creating projects
27