The Eclipse workbench is configured to build projects automatically. However, for C/C++ development you should turn this feature off, otherwise your entire project will be rebuilt whenever, for example, you save a change to your makefile or source files. Click Project > Build Automatically and ensure there is no checkmark beside the Build Automatically menu item.
Building Manually
Defining Build Settings
Building
Make Builder page,
C/C++ Properties window