Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Makefile generated by the Eclipse CDT?

I've built a hello world C++ project with Eclipse(helios) CDT. It compiled fine. But I would like to take a look at the Makefile CDT generated. I can't find it in project folder/debug/release folders or in the src folders. Where can I find this Makefile?

like image 858
firsttestcdt Avatar asked Dec 02 '10 05:12

firsttestcdt


People also ask

What is CDT for Eclipse?

The C/C++ Development Toolkit (CDT) is a set of Eclipse plug-ins that provide C and C++ extensions to the Eclipse workbench. For more information about Eclipse, see Workbench User Guide > Concepts > Workbench. The CDT provides a C/C++ IDE that simplifies many of the same tools that you can use from the command line.

Does Eclipse CDT come with compiler?

Unfortunately Eclipse only provides the Integrated Development Environment (IDE) but it is missing the actual compiler. To install a compiler, please follow the instructions for your operating system.

What is makefile project?

A makefile is a text file that contains instructions for how to compile and link (or build) a set of source code files. A program (often called a make program) reads the makefile and invokes a compiler, linker, and possibly other programs to make an executable file. The Microsoft program is called NMAKE.


2 Answers

On Windows,

Click your project, go to menu project -> properties, select Tool Chain Editor then select in Current Builder Gnu Make Builder.

Build a target now generate makefile.

Current builder Gnu Make Builder

http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop_build_toolchain.htm

like image 93
HugoPoi Avatar answered Oct 02 '22 10:10

HugoPoi


If you use the default setttings with current builder = CDT internal builder, there is no make file. if you select current builder = GNU make, you will see the makefile in the debug folder.

like image 32
ahala Avatar answered Oct 02 '22 09:10

ahala