[PATCH] make dir/file.o is still broken :(

Rob Landley rob at landley.net
Mon Mar 13 07:28:56 PST 2006


On Monday 13 March 2006 1:47 am, Denis Vlasenko wrote:
> Hi guys,
>
> In current busybox:
>
> # make applets/applets.o
>   GEN /.share/usr/src2/bbox/busybox.modsizes/.obj_full/.depend
>   CC applets/applets.o
> gcc: no input files

Yeah, I got that bug too, but on a different file.  I've pulled up 
http://www.gnu.org/software/make/manual/html_mono/make.html and am slowly 
reading through it because the new changes to the makefile infrastructure 
seem to be kind of brittle...

> make: *** [applets/applets.o] Error 1
> # make applets/applets.s
> make: *** No rule to make target `applets/applets.s'.  Stop.

Why on earth are you trying to make an assembly file?  We don't do that 
anywhere in the tree, to we?  It's not portable...

> Wow 8(
>
> Attached patch remedies this. It's not ideal because it still doesn't
> work if I build in separate object tree (failed to figure out why).
>
> It also adds a "make dir/file.i" target for generating preprocessed C file.

Why would we want to do this?

Ordinarily I don't care much about our makefile infrastructure getting bigger 
our our build taking up more space and more memory, because what we're trying 
to optimize is the generated binary.  But I also _hate_ complexity, and the 
build infrastructure has been growing huge quantities of it recently, for 
reasons I don't properly understand.  I don't appear to have the luxury of 
ignorance here anymore...

> Please apply.
> --
> vda

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list