Re: Novice question on makefile in yocto environment
On 30-03-2020 05:08, Raghu Icecraft Software Trainings via Lists.Yoctoproject.Org wrote:
Hi,For anything more advanced than one or two C files, avoid handcrafting makefiles and use autotools or cmake.
A helloworld makefile that takes "helloworld.c" or "helloworld.cpp" and creates an executable can be as simple as this:
And that's it. Notice the total absence of compiler and linker invocations, your environment already knows how to do that. Adding more to this makefile will usually only make it worse...