Re: kbuild - building a module/target from multiple directories

Thunder from the hill (thunder@ngforever.de)
Fri, 19 Jul 2002 18:46:57 -0600 (MDT)


Hi,

On Sat, 20 Jul 2002, John Levon wrote:
> With kbuild in 2.5, how do I specify that a module/target is to be built of
> object files and sub-directories ?
>
> The "obvious" approach :
>
> obj-$(CONFIG_BLAH) := blah.o
>
> blah-objs := blah_init.o blahstuff/
>
> doesn't work. Is there an example of a module doing this ?

What about:

blah/Makefile:

blah-objs := blah_init.o blahstuff/blahstuff.o

blah/blahstuff/Makefile:

blahstuff-objs := blah_didel.o blah_dadel.o blah_dumm.o

?

Regards,
Thunder

-- 
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o?  K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y- 
------END GEEK CODE BLOCK------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/