import c / c++ project into Eclipse

with makefile c / c++ project

File  -> New Project -> Makefile project with the existing code -> browse the code and get poject

  

Check Builder Settings

Do not select  Generate Makefiles automatically

          select Expand Env Variable Refs in Makefiles

check build directory

Build directory  ${workspace_loc:/projectname}

or

                     ${workspace_loc:/projectname/deubg}

Check Behaviour

   Build (incremental build)  all or empty