Hello,

* Philip Herron wrote on Wed, Apr 15, 2009 at 05:22:48PM CEST:
> Peter Johansson wrote:
> > Philip Herron wrote:
> >> What i would like to do is have sperate Makefile.am in each subdir that
> >> just compile to object files that in the src/Makefile can link into the
> >> main binary. Or is this the wrong way of thinking about the problem?
> >> Just if in one of those subdirs it may be nice to have a seperate
> >> program but i want to link in some of the code to the main program.
> >>   
> > If you don't mind using libtool, please have a look here
> > http://www.gnu.org/software/automake/manual/automake.html#Libtool-Convenience-Libraries

> Thanks loads that solved the problem! :)

You can use (static) convenience libraries without using libtool.
In sed speak:
  s/\.la/.a/g
  s/_la_/_a_/g
  s/noinst_LTLIBRARIES/noinst_LIBRARIES/

  s/AC_PROG_LIBTOOL/AC_PROG_RANLIB/

Hope that helps.

Cheers,
Ralf


Reply via email to