automating multi-object builds from a single source file
Robert P. J. Day
rpjday at mindspring.com
Mon Mar 27 17:05:52 UTC 2006
it occurs to me that the build structure for libbb would be way
simpler if each source file generated its own makefile dependencies,
rather than having to hardcode all that into Makefile.in.
as an example, if you consider messages.c as an example, part of the
makefile build would be to extract the object file info:
$ grep "^#ifdef L_" messages.c | sed -s 's/^#ifdef L_//'
all of which obviously represents the set of object files to build.
all of this could be done with a single macro and a single pattern
rule, i would think, making Makefile.in considerably shorter and
More information about the busybox