Article View: gnu.misc.discuss
Article #72112Re: Help needed with GNU-Make
From: Michael Salmon
Date: Mon, 30 Mar 1992 10:21
Date: Mon, 30 Mar 1992 10:21
40 lines
2233 bytes
2233 bytes
In article <279@esun_server40.gdc.com>, bergquis@wimpy (Brett Bergquist) writes: |> I have a problem that I cannot solve with SunOS make, and I am |> wondering if its possible to solve with GNU make. |> |> Heres the scenario. I have a library that will contains may > 200 |> object modules. This library is fairly large in disk size also. When |> running make to build the library, the archiving of the object module |> gets progressively longer and longer, near the half way point, its |> taking > 1 minute to archive. |> |> What I would like to do is to change the way the library is built, by |> compiling all of the object modules necessary, and then performing one |> "ar" to archive all of the build object module into the library. |> |> Is it possible to do this with GNU make? As an aside, I also probably |> will want to compile the object modules into a subdirectory, and have |> the "ar" pickup the object modules from there. I do this in order to |> support variants of the library (debug, profiled, optimized, etc.) |> |> Any ideas? This problem is fairly easily solvable with standard make, simply: rm libmy.a #or whatever it is called make ARFLAGS=qv libmy.a You can of course get quite fancy and define pattern rules for creating an archive entry from an object file in a sub-directory instead of the c source as it is today. -- Michael Salmon #include <standard.disclaimer> #include <witty.saying> #include <fancy.pseudo.graphics> Ericsson Telecom AB Stockholm
Technical Details
Message-ID:
<1992Mar30.102108.27122@ericsson.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!seunet!ericom!eos.ericsson.se!etxmesaReferences:
<279@esun_server40.gdc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,833fd16606160d80 X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1992-03-30 02:21:08 PST Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!seunet!ericom!eos.ericsson.se!etxmesa From: etxmesa@eos.ericsson.se (Michael Salmon) Newsgroups: gnu.misc.discuss Subject: Re: Help needed with GNU-Make Message-ID: <1992Mar30.102108.27122@ericsson.se> Date: 30 Mar 92 10:21:08 GMT References: <279@esun_server40.gdc.com> Sender: news@ericsson.se Reply-To: etxmesa@eos.ericsson.se (Michael Salmon) Organization: Ericsson Telecom AB Lines: 40 Nntp-Posting-Host: eos6c02.ericsson.se