help-make
[Top][All Lists]
Advanced

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

Re: How to Make Archive


From: Greg Chicares
Subject: Re: How to Make Archive
Date: Tue, 05 Apr 2011 13:52:44 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 2011-04-05 13:23Z, Ajay Jain wrote:
> 
> %.a : ALL OBJECT FILES
>     @$(ECHO) "\nBUILDING $@ \n"
>     $(AR) $(ARFLAGS) $@ $^
> 
> Any clue? What GENERAL rule can I write?

Specify the object files that each library should contain,
and then use the general rule you gave above. For example:

libx.a: $(x_objects)

liby.a: $(y_objects)

%.a:
        $(AR) $(ARFLAGS) $@ $^



reply via email to

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