HP Integrity NonStop J-Series User Manual
Page 31

You must 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. To get the sources for Car, unzip the file:
eclipse install directory\plugins\com.hp.nsdee_4.0.n\Examples.zip
The following example assumes Examples.zip is unzipped to C:\Examples.
To create a local makefile project from sources for Car from the NonStop Development perspective:
1.
From the context menu of the NonStop Project Explorer view, select New
→Makefile Project
with Existing Code. This Import Existing Code wizard opens.
2.
In the Import Existing Code wizard:
a.
Enter MakeCar in the Project name: field
b.
Enter in the Existing Code Location field:
C:\Examples\CarWithMakefile
c.
The Tools root: combo box contains the location of cross compilers and tools for a
particular RVU. If not, see
“Adding cross compiler locations” (page 66)
.
d.
If you want NSDEE to prepend the corresponding bin to PATH before builds, specify
either a Cygwin or Msys bin using the Cygwin/Msys bin: combo box.
e.
Leave the Set COMP_ROOT and update PATH based on tools root above selected so the
COMP_ROOT
environment variable is set to the Tools root: selection.
3.
Select Finish.
The MakeCar project is now in the NonStop Project Explorer view. Open the MakeCar project
folder to see the 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).
The .project and .cproject files are in the MakeCar folder, but these are not visible by
default.
To view these files:
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.
To hide .project and .cproject, use the C Element Filters dialog. The .project and
.cproject
files define attributes of the MakeCar project, including any customizations. If you
save your projects in a Source Configuration Management system, you must save these files in
addition to your source code. For information about how to build, deploy, and launch MakeCar,
see
“Building, deploying, and launching a project” (page 36)
.
Creating projects
31