Andy> I am trying to use automake 1.4 on an existing software package
Andy> whose source directory are organized as a set of subdirectories.
Andy> How can I write a makefile.am to automatically generate a
Andy> library file from these source files?
The easiest way in 1.4 is to make a libtool convenience library in
each subdir, and then combine those to make the main library in the
main directory.
Andy> so how can I use automake to manage the build of the library?
Andy> One thing I can do is to add Makefile.am to each subdirectory to
Andy> build a .a file there and then combine them on the top level
Andy> directory, but this gets tiresome as the number of
Andy> subdirectories increases. I hope there is a better way.
With libtool the pain here is minimal. You just add another .la to a
list in the toplevel Makefile.am.
The next major automake release will have a simple way of doing what
you want.
Tom