How to make Eclipse use an existing makefile that is not part of the project

I am trying to use Eclipse with an existing codebase. This code has a makefile buried several directories in depth from the root of the project sources. If I say eclipse, this hidden directory is the root of the project, it builds everything, but does not index anything, since Eclipse does not know where the sources are.

If I tell Eclipse to use the root from the sources, then I could not get Eclipse to use the hidden makefile.

I read other answers to questions related to the Eclipse file, but I still have a problem for Eclipse to work fine - I also tried my own Builder schell script, which uses a hidden Makefile, but no luck.

Thanks for any help!

+6
source share
1 answer

I would try changing the build directory of your project. In the project properties: C / C ++ BuildBuilder SettingsBuild Directory .

enter image description here

+8
source

Source: https://habr.com/ru/post/910091/


All Articles