Configure a managed make project

The Eclipse IDE automatically creates makefiles of managed make projects. Follow these steps to set up the build configuration for a managed make project:

  1. Right-click the desired project and select Properties.
  2. Select C/C++ Build > Settings. The right pane displays the options for the build tools such as compiler, linker, and assembler.
  3. Choose the tool section and configure the possible values on the right. For example:

 

  1. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.

Note For more information, see the "C/C++ Development User Guide" at http://help.eclipse.org/index.jsp.

Add header file directories

  1. Select DEY GCC C Cross-Compiler > Includes.
  2. In the right pane, click the Add button on the Include paths (-I) section toolbar. The Add directory path dialog opens.
  3. Type the absolute path to add or use the Workspace and File system buttons to locate it.
  4. Click OK.
  5. Repeat steps 2, 3, and 4 to add more directories.
  6. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.

Add libraries

  1. Select DEY GCC C Cross-Linker > Libraries.
  2. In the right pane, click the Add button on the Libraries (-l) section toolbar. The Enter Value dialog opens.
  3. Enter the name of the library to add. The name of a library is between the prefix lib and the extension lib<name>.a or lib<name>.so.
  4. Click OK.
  5. Repeat steps 2, 3, and 4 to add more libraries.
  6. If your library is not included in the toolchain, you can add the path where it is located in Library search path (-L).
  7. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.

Define/undefine macros

  1. Select DEY GCC C Cross-Compiler > Preprocessor.
  2. To define a macro:
  1. In the right pane, click the Add button on the Defined symbols (-D) section toolbar. The Enter Value dialog opens.
  2. Type the symbol name or name and definition. Click OK.
  3. Repeat to add more macros.
  1. To undefine a macro:
  1. In the right pane, click the Add button on the Undefined symbols (-U) section toolbar. The Enter Value dialog opens.
  2. Type the symbol name. Click OK.
  3. Repeat to undefine additional macros.
  1. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.

Set optimization level

  1. Select DEY GCC C Cross-Compiler > Optimization.
  2. In the right pane, select the level in the Optimization Level combo box.
  3. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.

Select debug level

  1. Select DEY GCC C Cross-Compiler > Debugging.
  2. In the right pane, select the level in the Debug Level combo box.
  3. When you finish, click Apply. Use Apply and Close to apply all the changes in the dialog and close it.