For sure this question has been already asked many times, but i can't find the proper answer so I am asking.
I have the following project structure:
/root
| obj
| Makefile
| src/
| | dir1/
| | | 1.cpp
| | dir2/
| | | 2.cpp
| | | dir3/
| | | | 3.cpp
| | | | 4.cpp
| | main.cpp
Can I have a generic makefile that will compile all the cpp files in any subfolder with any depth of the src folder and that will generate the object files into the obj directory ?
Note This project is being developed using Eclipse CDT, and I want now to be able to provide the source code without requiring user to install Eclipse to build it