|Re: Yocto Makefile.am doesn't not include new .c/.cpp files [message #1773206 is a reply to message #1773170]
||Sun, 24 September 2017 08:32
Registered: October 2012
Unfortunately, there is no easy way to automate this.|
The usual way to specify Makefile.am is
But you can have more than one executable. For instance
The autotools plugin would need to know which source files are needed for each executable.
It could just append it to all <exe>_SOURCES or perhaps just the first.
This may be fine for projects with single executables but potentially annoying for those with multiple executables.
That said, I've tried using wildcards such as: xxx_SOURCES=$(wildcard *.c)
but this confuses things and generates stuff like *.o instead of <file>.o
You could try writing a script (in say, Perl) that will modify the Makefile.am and it could even call automake and ./configure as well
FWIW: automake itself is a Perl script
[Updated on: Sun, 24 September 2017 13:26]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02101 seconds