Mon Feb 23 13:38:56 1998 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_single_transform_list): $objpat now a
+ parameter. Set $objpat when suffix rule found.
+
* aclocal.in (parse_arguments): Only put current year in --version
output.
* automake.in (parse_arguments): Only put current year in
# Does much of the actual work for handle_source_transform.
# Arguments are:
+# pattern matching object extension (e.g., .o)
# list of source files to transform
# Result is a list
# first element is name of linker to use (empty string for default linker)
# remaining elements are names of `.o's
sub handle_single_transform_list
{
- local (@files) = @_;
+ local ($objpat, @files) = @_;
local ($linker) = '';
local (@result) = ();
local ($nonansi_obj) = $obj;
{
# We just rewrite it. Maybe we should do more.
s//.$suffix_rules{$1}/;
+ $objpat = "\\." . $suffix_rules{$1};
}
else
{
foreach $cond (@conds)
{
@files = &variable_value_as_list ($var, $cond);
- ($temp, @result) = &handle_single_transform_list (@files);
+ ($temp, @result) = &handle_single_transform_list ($objpat,
+ @files);
$linker = $temp if $linker eq '';
# We have to have a new name for each such
push (@files, $unxformed . '.c');
}
- ($temp, @result) = &handle_single_transform_list (@files);
+ ($temp, @result) = &handle_single_transform_list ($objpat, @files);
$linker = $temp if $linker eq '';
&define_pretty_variable ($one_file . "_OBJECTS", '', @result)
unless $prefix eq 'EXTRA_';
# We don't care about the return value of this function. We just
# want to make sure to update %dep_files with the contents of
# BUILT_SOURCES.
- &handle_single_transform_list (@sources);
+ &handle_single_transform_list ("\\.o", @sources);
}
# Special-case @ALLOCA@ and @LIBOBJS@ in _LDADD or _LIBADD variables.