I use the environment:
(1) System: Ubuntu 11.04
(2) Eclipse + CDT
1. Select the Makefile project when establishing the project.
2. Import the makefile file and the project files (source files and header files) you have written into the project you just created.
3. If you write the first goal in the makefile is all, you can directly compile the project, build all can be.
Build all is equivalent to performing the make all effect on the terminal, and look at the effect of my project.
Run the project run, quite in the terminal./all
If not all, choose your makefile, right---->make tagets--->create, create a target that you want to build, such as test.
Then find the target you just created and click Build. Like the test target in my makefile.
Another: Eclipse with GDB debugging time do not open optimization options, and need to add debugging information. That is, after the GCC parameters do not add 04, be sure to add-G.
Use your own makefile to manage engineering in eclipse