Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use external makefile in Eclipse

Tags:

I have a source code of an OpenSource project which I get from SVN. I was able to run autogen --> configure --> and make successfully (through the terminal). But I want to build the same project with Eclipse, and I can't port manually those source files to eclipse though. So, How can I set Eclipse to use external make files ? can anyone please help me ? Thanks.

like image 765
Morpheus Avatar asked Mar 31 '10 05:03

Morpheus


People also ask

Where is the makefile located in eclipse?

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

How do I compile in eclipse?

You can create a custom Makefile and make sure it's in your project root. Then you need to disable the auto generated makefiles. You can do that by going here: Project Properties (right click on project and select properties) -> C/C++ Build -> in that window uncheck "Generate Makefiles Automatically."

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

Ok, I got it, It was straightforward. Just go to project properties --> C/C++ Build --> Make file generation --> and untick "Generate Make files automatically". In additionally you may have to set the Build location also.

like image 123
Morpheus Avatar answered Oct 21 '22 08:10

Morpheus