On 11/06/2015 02:57 AM, Kaspar Schleiser wrote:
Hey,
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".
Kaspar
Thanks for the suggestion, but adding to the SRC var in my application
makefile doesn't appear to work (sources not getting compiled).
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users