The CDT relies on an external make utility, such as GNU make, to build a project. The CDT can generate makefiles automatically when you create a Managed Make C project or a Managed Make C++ project. You have the option of creating a Standard Make C project or a Standard Make C++ project and providing the makefile yourself.
You must install and configure the following utilities:
Tip: Cygwin contains these utilities (make, gcc and gdb) for a Windows environment. While running the cygwin installation, ensure gcc and make are selected since they are not installed by default. For more information, see http://www.cygwin.com. If you are a Red Hat user, all that you need to do to build your project is included in the Red Hat Linux installation. For other operating systems, please refer to your installation documentation.
The CDT uses a number of terms to describe the scope of the build.
This is an incremental build (make all, assuming all is defined in your makefile). Only the components affected by modified files in that particular project are built.
Builds every file in the project whether or not a file has been modified since the last build. A rebuild is a clean followed by a build.
For more information on builds, see:
Build-related information is displayed as follows:
For more information about the Tasks view, see Workbench User Guide > Reference > User interface information > Views and editors > Tasks view.
You can either create a C/C++ project for which you supply the makefile or create a C/C++ project for which the CDT generates makefiles automatically.
To create a new project, from the menu bar choose File > New > Project. In the dialog that appears, expand the C/C++ group and choose e.g. C Project
You can set build preferences in Eclipse:
When you set the build order, the CDT does not rebuild projects that depend on a project; you must rebuild all projects to ensure all changes are propagated.
For a Makefile project, the C/C++ compiler that a project uses is controlled by the project's Properties setting. To view a project's properties, right-click on the project and select Properties. In the dialog that appears, the C/C++ Build page enables you to control a variety of settings, including:
make
is used. To change it, uncheck Use
default build command and change it or add arguments to the make command.all
or clean
.For a standard (non-Makefile) project (often called "Managed Build" or "Managed Make" project from earlier CDT version), the project properties dialog enables you to manage the build configurations of your project. For additional information see:
Build-related information is displayed as follows:
CDT Projects
Project file views