automake
[Top][All Lists]
Advanced

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

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


From: chadhogg
Subject: Avoiding multiple identical <program>-<source>.o files
Date: Thu, 6 Nov 2008 11:00:34 -0800 (PST)

I have just started using autotools for a project, and I am having trouble
with one detail.  I have about a dozen different programs to build, which
share most of the same sources.  Half of them need to have certain compiler
options set, and the other half different options.  The only way I have seen
to handle this so far is to set the individual <program>_CPPFLAGS for each
program in my Makefile.am.  This works, but now it builds a new copy of each
source file for each program, rather than just the two copies necessary. 
The result is that my build time has increased by at least fivefold over
when I had a hand-written Makefile.

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?

Thank you,
Chad
-- 
View this message in context: 
http://www.nabble.com/Avoiding-multiple-identical-%3Cprogram%3E-%3Csource%3E.o-files-tp20367351p20367351.html
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.





reply via email to

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