This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Using EXTRA_SOURCES
- To: Sam Lantinga <slouken at devolution dot com>
- Subject: Re: Using EXTRA_SOURCES
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 30 Mar 2000 19:53:07 -0800 (PST)
- Cc: automake at gnu dot org
- References: <E12aVRw-0006nS-00@roboto.devolution.com>
Sam> The basic problem is that source is conditionally compiled into
Sam> SDL, and supposedly the attached code is supposed to do the
Sam> "right thing", but I can't get it to include rules for the
Sam> objects. I can get the desired effect using automake
Sam> conditionals, but the complexity of targets in SDL means that it
Sam> takes literally 5 minutes to generate the makefiles.
What you have definitely won't work. This would be a FAQ if we had a
FAQ :-). (Hey, what do people think about using FAQ-O-Matic for
Automake? I could set it up easily.)
You can have a configure substitution in _SOURCES. I know this seems
wrong. It is unfortunate that 1.4 doesn't complain about this (1.5
will).
Instead you have to play tricks with _LDADD if you want to go the
configure substitution route.
How big are your Makefiles? How many? Is there a way to solve the
performance problem? Conditionals are the easiest way to go from the
maintenance perspective (in most cases, imho, etc).
Tom