Re: Archiving last step
Adriaan de Groot <[email protected]> Fri, 2 Sep 2005 15:14:00 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
On Friday 02 September 2005 13:15, Bram Neijt wrote:
> The solution to this problem is an intermediat archive "ar ru
> mainprogram.a object1.o object2.o object3.o" (not totally sure about
> the ar command) and then do the final link phase with "g++ -o
> mainprogram mainprogram.o mainprogram.a" the executable will be
> smaller then using the seperate objects.
Create a library target (It's been a while since I used AAP, so my syntax may
be off here):
:library libinternal { SOURCES=object1.c object2.c }
that library contains the object files of everything but main(), and then
:program foo { SOURCES=main.c LIBADD=libinternal }
Inaccurately yours,
[ade]
--
These are your friends - Adem
GPG: FEA2 A3FE Adriaan de Groot
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf