This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Partially Linked Objects
- To: automake@gnu.org
- Subject: Partially Linked Objects
- From: olly@muscat.co.uk (Olly Betts)
- Date: 10 May 1999 17:27:05 -0000
- Mail-Followup-To: automake@gnu.org
- Organization: Muscat Ltd -- http://www.muscat.co.uk/
Hi,
I'm trying to use automake to build a partially linked object (ld -r on all
the Unix platforms I need to support). I've tried a few variations along
the lines of:
noinst_DATA = partial.o
partial_o_SOURCES = partial1.c partial2.c
partial.o: $(partial_o_SOURCES)
ld -o $@ -r $(partial_o_OBJECTS)
But not had any success.
Is there a way of doing this? In reality there are a couple of hundred
sources, so I'm trying to avoid having to maintain a list of the sources and
the objects separately. Any suggestions greatly appreciated.
Cheers,
Olly