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

Reply via email to