I have some C functions inside of a directory in the template folder. The problem is that I cannot get the “make” command to look inside of that directory for the code! the structure is as follows:
As we see, $(SRCDIR) forces the compiler to search ONLY in the source’s root directory (typically in the projects directory). I am not very experienced with Makefiles but the only workaround that I have found is to set up a new rule in the Makefile specifically for each source file inside of a subdirectory.
I hope somebody finds it useful.