This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Partially Linked Objects
- To: Olly Betts <olly@muscat.co.uk>
- Subject: Re: Partially Linked Objects
- From: Brian Ford <ford@vss.fsi.com>
- Date: Tue, 18 May 1999 10:35:10 -0500
- cc: automake@gnu.org
On Tue, 18 May 1999, Olly Betts wrote:
> Hmm - I've just been trying to use libtool to do the partial link for me,
> but I can't get this to work from within automake.
>
> Here's my best attempt at a Makefile.am:
>
> ===========================================================================
>
Try this:
noinst_PROGRAMS = all.o
> all_o_SOURCES = a.cc b.cc
>
all_o_SOURCES =
all_o_LDADD = libtest.la
all_o_LINK = ld -r $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
Warning: Libtool does not currently fully support C++, but it should be
forth comming.
> all.o: $(all_o_SOURCES)
> $(LIBTOOL) --mode=link ln -o $@ $(all_o_OBJECTS)
>
Remove this.
> noinst_LTLIBRARIES = libtest.la
>
> libtest_la_LIBADD = all.o
> libtest_la_SOURCES =
>
Replace the last two lines with:
libtest_la_SOURCES = a.cc b.cc
--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444