Therefore, many a times we want to use Eclipse for editing source files and comiple it using a Makefile. It can be done by adding the project to Eclipse in the following steps:
- Open Eclipse with its default workspace.
- Go to File->New->Makefile Project with Existing Code
- Browse to the main folder in which you have your project files
- Give appropriate project name. I generally like the name to be the same as the root folder.