How to import C makefile project into eclipse or put in under eclipse How to import C makefile project into eclipse or put in under eclipse linux linux

How to import C makefile project into eclipse or put in under eclipse


First run the ./configure to generate the Makefile.After that, if you have CDT installed,just choose the option"File->New->Makefile Project With Existing Code" and point to the directory where the Makefile is stored.


Create a new project, make sure to uncheck the "Use default location" option while doing so. Add your source tree path in the location field. Now select "Makefile Project" in the project types window.

In "builder settings" (Project>Properties), uncheck the "use default build command" and add:

make -f /<your project location/Makefile

If your makefile is named otherwise, you can change it here.

To run your application, add the application in Run Configurations. See full instructions here.


Don't say import.

Create a new C/C++ project using the New Project Wizard, and specify the "root folder" as a non-default location of the new project.

See the instructions here.

Read "Creating new projects from existing source roots"