Search code examples
c++eclipsenetbeansmakefileeclipse-cdt

Specifying external Makefile options in Eclipse CDT


I'd like to (temporarily) migrate a C++ project from Netbeans to Eclipse (in order to use Eclipse's parallel debugger). So far I've created a "Makefile project with Existing Code" project in Eclipse that references the Netbeans project Makefile/directory. However the Netbeans project accepts config options for example

make -f Makefile CONF=GNU_Debug

How can I pass this option to the Makefile in Eclipse?

Eclipse version Eclipse for Parallel Application Developers -- Mars.2 Release (4.5.2)


Solution

  • You can change the default make call in the projects properties dialog:

    enter image description here

    My version:

    Version: Mars.1 Release (4.5.1)


    Note that the -f Makefile should be superfluous.