Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-10-01 Thread Ryan McDougall
On Thu, 2006-09-28 at 13:06 +0200, Ralf Wildenhues wrote: > Hello Ryan, > > * Ryan McDougall wrote on Thu, Sep 28, 2006 at 11:30:32AM CEST: > > On Thu, 2006-09-28 at 18:23 +0900, Ryan McDougall wrote: > > > > > > How can I either > > > 1. Express to automake the correct dependancy > > By writing

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-28 Thread Ralf Wildenhues
* Ryan McDougall wrote on Thu, Sep 28, 2006 at 11:23:10AM CEST: > > I am currently attempting to use a version of this (non-recursive) > method. I am avoiding exactly what you wrote since I need to pass > specific -D options to different packages without using libA_CPPFLAGS = > -DFORLIBFOO -DFORLI

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-28 Thread Ralf Wildenhues
Hello Ryan, * Ryan McDougall wrote on Thu, Sep 28, 2006 at 11:30:32AM CEST: > On Thu, 2006-09-28 at 18:23 +0900, Ryan McDougall wrote: > > > > How can I either > > 1. Express to automake the correct dependancy By writing libA_la_LIBADD = libfoo.la instead of libA_la_LIBADD = -L. -lfoo > I

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-28 Thread Ryan McDougall
On Thu, 2006-09-28 at 18:23 +0900, Ryan McDougall wrote: > On Fri, 2006-09-22 at 04:34 +0200, Ralf Wildenhues wrote: > > * Ryan McDougall wrote on Fri, Sep 22, 2006 at 02:54:21AM CEST: > > > On Thu, 2006-09-21 at 13:32 +0200, Ralf Wildenhues wrote: > > > > * Ryan McDougall wrote on Thu, Sep 21, 200

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-28 Thread Ryan McDougall
On Fri, 2006-09-22 at 04:34 +0200, Ralf Wildenhues wrote: > * Ryan McDougall wrote on Fri, Sep 22, 2006 at 02:54:21AM CEST: > > On Thu, 2006-09-21 at 13:32 +0200, Ralf Wildenhues wrote: > > > * Ryan McDougall wrote on Thu, Sep 21, 2006 at 11:40:37AM CEST: > > > 2) If you prefer nonrecursive makefi

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ralf Wildenhues
* Ryan McDougall wrote on Fri, Sep 22, 2006 at 04:51:41AM CEST: > On Fri, 2006-09-22 at 04:34 +0200, Ralf Wildenhues wrote: > > > > The Libtool manual has more details about this (but it's arguably a bit > > cryptic about convenience archives). I'm not sure what you need to > > know. > > Since I

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ryan McDougall
On Fri, 2006-09-22 at 04:34 +0200, Ralf Wildenhues wrote: > > > > > > You should keep in mind that the convenience archives will end up in > > > total (i.e., all their symbols, not just needed ones) in the resulting > > > module. > > > > This is a good point, thank you. Do you have any more info

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ralf Wildenhues
* Ryan McDougall wrote on Fri, Sep 22, 2006 at 04:10:40AM CEST: > > The problem with this is that with this method that I have to manually > specify the dependencies, right? > > A: foo > cd src/A && $(MAKE) $(AM_MAKEFLAGS) libA.la > .PHONY: A > > foo: > cd src/foo && $(MAKE) $(AM_M

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ralf Wildenhues
* Ryan McDougall wrote on Fri, Sep 22, 2006 at 02:54:21AM CEST: > On Thu, 2006-09-21 at 13:32 +0200, Ralf Wildenhues wrote: > > * Ryan McDougall wrote on Thu, Sep 21, 2006 at 11:40:37AM CEST: > > > > > 1) If you prefer recursive makefiles then you can have each directory > > create one (or a numbe

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ryan McDougall
On Thu, 2006-09-21 at 13:32 +0200, Ralf Wildenhues wrote: > > The second approach will enable you to > make libA.la > > in the toplevel directory. Otherwise, there is nothing that prevents > you from adding your own targets a la > A: > cd src/A && $(MAKE) $(AM_MAKEFLAGS) libA.la >

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ryan McDougall
On Thu, 2006-09-21 at 13:32 +0200, Ralf Wildenhues wrote: > Hello Ryan, > > * Ryan McDougall wrote on Thu, Sep 21, 2006 at 11:40:37AM CEST: > > > > Im porting a large code-base from windows to linux, and attempting to > > use autotools to do so. The code in SVN is essentially one big tree of > >

Re: The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ralf Wildenhues
Hello Ryan, * Ryan McDougall wrote on Thu, Sep 21, 2006 at 11:40:37AM CEST: > > Im porting a large code-base from windows to linux, and attempting to > use autotools to do so. The code in SVN is essentially one big tree of > somewhat related modules -- lets call them foo, bar, etc (Projects under

The automake/libtool way to make a dynamic lib from multiple sources

2006-09-21 Thread Ryan McDougall
Hello, I apologize if this has been answered somewhere. Ive read the book and searched the archives. My situation is this: Im porting a large code-base from windows to linux, and attempting to use autotools to do so. The code in SVN is essentially one big tree of somewhat related modules -- le