projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ld/
[deliverable/binutils-gdb.git]
/
libiberty
/
maint-tool
diff --git
a/libiberty/maint-tool
b/libiberty/maint-tool
index 6b9bf7f2cdbe419957a92c0046271740899e63ff..a460b5570e5c42e9c3c5b69bd23881453cc373a5 100644
(file)
--- a/
libiberty/maint-tool
+++ b/
libiberty/maint-tool
@@
-1,7
+1,7
@@
#!/usr/bin/perl
# -*- perl -*-
#!/usr/bin/perl
# -*- perl -*-
-# Copyright (C) 2001
+# Copyright (C) 2001
, 2007
# Free Software Foundation
#
# This file is part of the libiberty library.
# Free Software Foundation
#
# This file is part of the libiberty library.
@@
-17,8
+17,8
@@
#
# You should have received a copy of the GNU Library General Public
# License along with libiberty; see the file COPYING.LIB. If not,
#
# You should have received a copy of the GNU Library General Public
# License along with libiberty; see the file COPYING.LIB. If not,
-# write to the Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-# Boston, MA 0211
1-1307
, USA.
+# write to the Free Software Foundation, Inc., 5
1 Franklin Street - Fifth Floor
,
+# Boston, MA 0211
0-1301
, USA.
#
# Originally written by DJ Delorie <dj@redhat.com>
#
# Originally written by DJ Delorie <dj@redhat.com>
@@
-145,7
+145,6
@@
sub undoc {
next unless /^\# *define/;
s/\# *define *//;
}
next unless /^\# *define/;
s/\# *define *//;
}
- next if $filename =~ /mpw\.c/;
s/ VPARAMS//;
s/ *\177.*//;
s/ VPARAMS//;
s/ *\177.*//;
@@
-213,6
+212,12
@@
sub locals_first {
sub deps {
sub deps {
+ $crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n";
+ $crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n";
+ $crule .= "\telse true; fi\n";
+ $crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n";
+ $crule .= "\n";
+
$incdir = shift @ARGV;
opendir(INC, $incdir);
$incdir = shift @ARGV;
opendir(INC, $incdir);
@@
-221,7
+226,6
@@
sub deps {
$mine{$f} = "\$(INCDIR)/$f";
$deps{$f} = join(' ', &deps_for("$incdir/$f"));
}
$mine{$f} = "\$(INCDIR)/$f";
$deps{$f} = join(' ', &deps_for("$incdir/$f"));
}
- $mine{'config.h'} = "config.h";
opendir(INC, $srcdir);
while ($f = readdir INC) {
opendir(INC, $srcdir);
while ($f = readdir INC) {
@@
-229,7
+233,8
@@
sub deps {
$mine{$f} = "\$(srcdir)/$f";
$deps{$f} = join(' ', &deps_for("$srcdir/$f"));
}
$mine{$f} = "\$(srcdir)/$f";
$deps{$f} = join(' ', &deps_for("$srcdir/$f"));
}
- $mine{'config.h'} = "config.h";
+
+ $mine{'config.h'} = "stamp-h";
open(IN, "$srcdir/Makefile.in");
open(OUT, ">$srcdir/Makefile.tmp");
open(IN, "$srcdir/Makefile.in");
open(OUT, ">$srcdir/Makefile.tmp");
@@
-260,10
+265,10
@@
sub deps {
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
$obj =~ s/\.c$/.o/;
@deps = sort { &locals_first($a,$b) } keys %scanned;
$obj = $f;
$obj =~ s/\.c$/.o/;
- $obj = "$obj:";
+ $obj = "
./
$obj:";
if ($#deps >= 0) {
if ($#deps >= 0) {
- print OUT
$obj
;
- $len = length(
$obj
);
+ print OUT
"$obj \$(srcdir)/$f"
;
+ $len = length(
"$obj $f"
);
for $dt (@deps) {
$d = $mine{$dt};
if ($len + length($d) > 70) {
for $dt (@deps) {
$d = $mine{$dt};
if ($len + length($d) > 70) {
@@
-275,7
+280,12
@@
sub deps {
}
}
print OUT "\n";
}
}
print OUT "\n";
+ } else {
+ print OUT "$obj \$(srcdir)/$f\n";
}
}
+ $c = $crule;
+ $c =~ s@\$\<@\$\(srcdir\)\/$f@g;
+ print OUT $c;
}
}
closedir(S);
}
}
closedir(S);
This page took
0.025783 seconds
and
4
git commands to generate.