Using custom Makefile with Eclipse/CDT

Viewed 91820

I have a project of multiple .c and .h files and I write my own makefile.

How can I configure Eclipse to use my makefile and my source files from their original locations?

6 Answers

In my latest attempt to compile a Cross ARM compile, I made a painful discovery on how to get this working.

First I created a "Makefile project with existing Code". I selected the Cross ARM tool chain. If I now open a console within Eclipse and make, it works.

Now to build within the GUI, I had to:

  1. Change properties to Internal Builder, with Generate Makefile checked.
  2. The settings option now offers Build Artifact tab. pick executable with ${Project}.
  3. Build. This will result in error in link stage.
  4. Switch the settings to External Builder, uncheck "Automatic Makefile generation"
  5. Clean
  6. Build
Related