[Top][All Lists]

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

Re: Building libraries 101

From: Brendan Heading
Subject: Re: Building libraries 101
Date: Thu, 26 May 2005 22:07:54 +0100
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

John Graham-Cumming wrote:

I assume that the what you are doing is building a library (.a) from a
bunch of .o files.  You could do something like this:

        $(AR) r '$@' $^
        ranlib '$@'

then (as you have above), just specify the list of objects like this:

    libfoo.a: $(FOO_OBJS)
    libbar.a: $(BAR_OBJS)
    libbaz.a: $(BAZ_OBJS)

Ah, I guessed that might work :)

Thanks John, you've been extremely helpful. I'm away to beaver away at my makefiles :)


reply via email to

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