Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a (Linux) C++ IDE that can 'construct' a project from a makefile?

Tags:

c++

linux

I am working on a legacy C app which uses makefiles. I am more comfortable (and more productive) working from within an IDE, so I am looking for an IDE that can import the makefile and create a project.

Incidentally, these are hand written makefiles (not complicated ones like those generated by Autoconf). I am using Code::Blocks at the moment, but it seems it is unable to import makefiles ...

like image 532
Paul Avatar asked May 05 '10 09:05

Paul


3 Answers

The last time I checked, Eclipse can import makefile projects or generate makefiles for you.

like image 156
Xavier Ho Avatar answered Nov 02 '22 22:11

Xavier Ho


I think that most do. For a fact QTCreator and Eclipse can deal with makefile based projects appropriatedly.

In eclipse CDT (last one I have used) just create a C++ project specifying the current location of your project and tell it to use an empty makefile. That will create an Eclipse project that uses the existing makefile (untouched)

like image 38
David Rodríguez - dribeas Avatar answered Nov 02 '22 22:11

David Rodríguez - dribeas


Unless you make some hard assumptions on what can and cannot happen in the make file, I doubt what you describe is even theoretically possible.

like image 33
shoosh Avatar answered Nov 02 '22 22:11

shoosh