如何在 Contiki 的 Makefile 上添加源文件?

Ang*_*ngs 2 c makefile gnu-make contiki

我正在使用来自https://github.com/contiki-os/contiki的源文件我添加了一个新目录(比如/foo),其中包含一些 .c 和 .h 文件

我需要在 上使用它们examples/cc26xx,尽管我将 .h 文件(在 下/foo)包含在cc26xx-demo.c 中,但在我运行时它并没有真正包含这些文件make

谁能告诉我如何将它们包含在examples/cc26xx/MakefileMakefile.include 中

Ang*_*ngs 5

添加 PROJECT_SOURCEFILES += mylib.c到 Makefile 解决了这个问题。