* Jay G. Scott wrote on Wed, Feb 17, 2010 at 05:34:29PM CET: > On Wed, Feb 17, 2010 at 08:15:58AM +0100, Ralf Wildenhues wrote: > > * Jay G. Scott wrote on Mon, Feb 15, 2010 at 07:07:44PM CET: > > > > > > while working on GAMESS (a quantum chemistry program) i ran in > > > to a situation that made it clear that individual source files > > > needed to be compiled with different optimization options. > > > automake doesn't support that. > > > > Yes, it does, by way of per-target flags like foo_CFLAGS, foo_FFLAGS, > > right, that's per-TARGET. not per OBJECT FILE (or source file) > which is what i need.
One can emulate per-object file by using convenience archives for sets of files that need a special per-target flag. I agree that it's a bit ugly (and has some overhead) to do so, but at the time Automake invented this, no efficient portable method for per-object file flags was known, and moreover, object file names are an internal detail of Automake (for several reasons, e.g., renaming due to per-target compile flags, length limitations, subdir-objects, KnR support). Cheers, Ralf
