Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I have standard source code package under Linux which requires to run

./configure make 

to compile it (and it works ok).

Mostly these files are C/C++

Is it possible to put this project under Eclipse control? I wish to browse definitions etc...

UPDATE 1

I have Eclipse Indigo running on Ubuntu. It contains CDT of course.

When I choose File-Import, I see no matching option under C/C++. Under General I have Existing Projects into Workspace but I get No project are found to import if I point this wizard to my project root.

UPDATE 2

I have installed Eclipse with Ubuntu package manager. Probably this was wrong.

like image 257
Dims Avatar asked Mar 20 '12 21:03

Dims


People also ask

Where is the makefile located in eclipse?

By default you should have [workspace]/[project folder]/Debug/makefile.

What is make target in Eclipse?

A "make target" provides a way for developers to interactively select a makefile target from within the Eclipse environment. It is assumed that the makefile is named makefile , which will allow it to run with the default build tool configuration. This can be changed but is cleaner if defaults are used.


1 Answers

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.

like image 56
manasij7479 Avatar answered Sep 22 '22 08:09

manasij7479