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.
