This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Partially Linked Objects


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]