automake
[Top][All Lists]
Advanced

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

Re: Avoiding multiple identical <program>-<source>.o files


From: Warren Young
Subject: Re: Avoiding multiple identical <program>-<source>.o files
Date: Fri, 07 Nov 2008 15:44:28 -0700
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

chadhogg wrote:

Is there a way I can get automake to recognize that it does not need more
than one copy of a .o file for a given set of compiler options?

It might do what you want if you build these common sources into two convenience libraries -- look that term up in the docs -- and change the link options for the various programs to use the appropriate convenience library. So:

[common sources] + [option set 1] = [convenience library 1]
[object set 1] + [convenience library 1] = [program set 1]

[common sources] + [option set 2] = [convenience library 2]
[object set 2] + [convenience library 2] = [program set 2]




reply via email to

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