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]

Partially Linked Objects


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


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