| 1 |
#!/usr/local/bin/perl -w |
| 2 |
|
| 3 |
BEGIN { require Exporter }; |
| 4 |
|
| 5 |
use Tk::Pretty; |
| 6 |
|
| 7 |
%depth = (); |
| 8 |
|
| 9 |
require 'process_object'; |
| 10 |
|
| 11 |
foreach (<*.o>) |
| 12 |
{ |
| 13 |
do_nm($_); |
| 14 |
} |
| 15 |
|
| 16 |
|
| 17 |
@ARGV = <*_f.o> unless(@ARGV); |
| 18 |
|
| 19 |
foreach (@ARGV) |
| 20 |
{ |
| 21 |
do_need($_,0,"ARGV"); |
| 22 |
} |
| 23 |
|
| 24 |
foreach $file (sort keys %need) |
| 25 |
{ |
| 26 |
my $src = $file; |
| 27 |
$src =~ s/\.o$/.c/; |
| 28 |
print "$src ($depth{$file}) : ",Pretty($need{$file}),"\n"; |
| 29 |
} |
| 30 |
|
| 31 |
print "\n"; |
| 32 |
|
| 33 |
foreach $name (sort keys %unres) |
| 34 |
{ |
| 35 |
print "$name : ",Pretty($unres{$name}),"\n"; |
| 36 |
} |
| 37 |
|