With standard make projects, you must provide a makefile to build a project. With a managed make project, the Eclipse* IDE generates a makefile to build the project automatically. Consequently, the Eclipse IDE is much more aware of the internal build state with a managed make project compared to a standard make project. For example, build information such as include file paths (-I) and macro definitions (-D) which are coded in the makefile, and other build settings which are intrinsic to the build tools (compiler, compiler driver, linker, etc.), are known in the Eclipse IDE for a managed make project to a greater extent than a standard make project. This information affects the search and code assist functionality of the IDE. The Discovery Options support functionality will allow for improved search and code assist functions for standard make projects.
As an example of how this affects the capabilities of the CDT for standard make projects, suppose you have a source file open in the editor view and wish to visit the declaration for some function the code calls. You would select the function call in the code, right click, and select Open Declaration from the context menu. If the include file containing the function declaration resided in some directory coded in your makefile, the CDT will not find the declaration because it has no visibility to the coded include path.
Discovery Options support in the CDT can be enabled to improve the situation by enhancing the Eclipse IDE build state. Enabling this support causes the CDT to 'snoop' and parse the build process output to extract the otherwise invisible build path information. This information is then added to the path information used by the CDT searching mechanism, and the include file can then be found and opened. The default support provided by CDT is for the GNU* tools (gcc, etc.). If you wish to build your projects using the Intel compiler, use the settings described here.
This section provides instructions to build a working example that includes the discovery options: