Building a Project
Related Topics:
To build your project, use one of the following methods:
- In the Main Window, choose Build
Build Project.
- From the Build Menu (Building Window) or Build Menu (main window), select Entire Project or one of the other project targets in the Build menu picklist.
- Each type of project (except the User Makefile project, where managing your project is left up to you) has a special Clean target. If you build the Clean target by selecting it from the Build menu picklist, you are asking to delete all of your project's generated files (for example, the .o files), the source browsing database, the C++ templates database, the executable itself, and other build-related files. For more information about targets, see Targets.
- Click the Build tool bar button in your editor window.
After you select one of these methods, the Sun WorkShopTM programming environment creates a makefile from the project definitions you provided in the Create New Project wizard or the Edit Current Project Window, launches the make utility, and opens the Building Window to show the results of the build.
To build your project from the command line (for example, as part of a script or a cron file):