#!/usr/bin/perl
# -*- perl -*-
-# Copyright (C) 2001, 2007
+# Copyright (C) 2001, 2007, 2010
# Free Software Foundation
#
# This file is part of the libiberty library.
for $f (sort keys %listed) {
if ($f =~ /(.*)\.c$/) {
$base = $1;
- if (! $listed{"$base.o"}) {
+ if (! $listed{"./$base.o"}) {
print "O $f\n";
}
}
opendir(INC, $incdir);
while ($f = readdir INC) {
- next unless $f =~ /\.h$/;
+ next unless $f =~ /\.h$/ || $f =~ /\.def$/;
$mine{$f} = "\$(INCDIR)/$f";
$deps{$f} = join(' ', &deps_for("$incdir/$f"));
}
+ $mine{'config.h'} = "config.h";
opendir(INC, $srcdir);
while ($f = readdir INC) {
$mine{$f} = "\$(srcdir)/$f";
$deps{$f} = join(' ', &deps_for("$srcdir/$f"));
}
-
- $mine{'config.h'} = "stamp-h";
+ $mine{'config.h'} = "config.h";
open(IN, "$srcdir/Makefile.in");
open(OUT, ">$srcdir/Makefile.tmp");
}
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
- $obj =~ s/\.c$/.o/;
+ $obj =~ s/\.c$/.\$(objext)/;
$obj = "./$obj:";
if ($#deps >= 0) {
print OUT "$obj \$(srcdir)/$f";