automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: library dependency


From: Ralf Wildenhues
Subject: Re: library dependency
Date: Wed, 4 Mar 2009 09:22:52 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Peter Johansson wrote on Wed, Mar 04, 2009 at 06:19:30AM CET:
> John Wohlbier wrote:
>>
>> Does automake allow for automatically building lib2 when make is typed
>> within lib1? If so, how is it done? If not, is this an unreasonable thing to
>> expect the dependencies to handle?
>>   
> I see two solutions to this.
>
> 1) Move directory lib2 to be a SUBDIR of lib1
>
> 2) or add the following in lib2/Makefile.am
[...]

3) Use a nonrecursive makefile setup; add lib2/lib2name.la to
lib1_lib1name_la_LIBADD if that is what you need.  Of course
then you cannot type 'make' in either lib[12], but you could
put helper makefiles there to "cd .. && $(MAKE) ...".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]