automake
[Top][All Lists]
Advanced

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

Re: subdirs for multiple binaries


From: Ralf Wildenhues
Subject: Re: subdirs for multiple binaries
Date: Wed, 15 Apr 2009 20:03:59 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

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

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