Do we have an efficient way for including all subdirectories in Makefile, rather than including each directory with -I option?
For instance below is my directory structure,where source code and headers are distributed across different subdirs. I do not have any Makefiles in subdirectories, but only a single top Makefile.
|--> SRC
|--> scripts
|--- **Makefile**
|--> lib
|------*.c
|------*.h
|----> subdir
|------*.c
|--> tests
|---> block1
|------*.c
|---> block2
|------*.c
|---> block3
|------*.c
|------*.h