confused by libbb/Makefile

Peter S. Mazinger ps.m at gmx.net
Fri May 12 21:36:46 UTC 2006


On Fri, 12 May 2006, Robert P. J. Day wrote:

> 
>   i'm a bit baffled by libbb/Makefile:
> 
> ==============================
> ...
> ifndef top_srcdir
> top_srcdir=..
> endif
> ifndef top_builddir
> top_builddir=..
> endif
> srcdir=$(top_srcdir)/libbb
> LIBBB_DIR:=./
> include $(top_builddir)/Rules.mak      <-- ???

this is probably srcdir (as it does not change)

> include $(top_builddir)/.config        <-- ???

this is ok, because it is generated and you want to write to build 
directory, not the source

Peter

> include Makefile.in
> all: $(libraries-y)
> -include $(top_builddir)/.depend
> ...
> ==============================
> 
>   if you're truly trying to support being able to build libbb in a
> separate directory from the source, shouldn't you be including those
> files from $(top_srcdir), not $(top_builddir)?  and you'd need to
> include Makefile.in from the libbb source directory as well, no?
> 
> rday
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the busybox mailing list