Search code examples
ceclipseautotoolseclipse-cdt

Add source file to Autottol project


I'm fighting with eclipse and autotools project. I'What I'm trying to find is a way to add includes dirs and new source files to project.

So far I modified in /src/makefile of my project:

  1. DEFAULT_INCLUDES to add all includes directories
  2. My_Project_CFLAGS to add used libs

The problem is that each time I have to reconfigure the project (by project popup menu) The maakefile is restored at original, loosing all my changes.

Is in Eclipse IDE a way in project properties where I can add my changes that grants all my modifications are applied to the project after a reconfigure project command?

Or Am I wrong modifing manually makefile and the right way to do this stuff is....?


Solution

  • If you are really using autotools, you should edit Makefile.am instead of Makefile.