[riot-users] multiple application source directories

Kaspar Schleiser kaspar at schleiser.de
Fri Nov 6 08:57:37 CET 2015


On 11/06/15 03:17, Rick Rogers wrote:
> I am trying to compile an application with source files in multiple 
> subdirectories.  What is the best way to do this within the RIOT build 
> system?  I added "DIRS += ./<subdir>" to the application makefile, which 
> results in compilation of subdirectory source files, but they are still 
> not getting linked in.

If you add the subdirectories using DIRS, they will be compiled as
"modules" and would have to be linked in using "USEMODULE += <subdir>".

It might be simpler to include the files in your application's module
using "SRC += <subdir>/*.c".


More information about the users mailing list