diff options
author | DJ Delorie <dj@redhat.com> | 2004-01-22 14:10:56 -0500 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2004-01-22 14:10:56 -0500 |
commit | 398b3debc46060c500086e7566caf8ce2b23e1d0 (patch) | |
tree | 3c82a4f9075b890c94f602bad300018311f34f4e /libiberty/maint-tool | |
parent | 7bff636b072cb0d8c6efde03593cdfb289d99c85 (diff) | |
download | gcc-398b3debc46060c500086e7566caf8ce2b23e1d0.tar.gz |
Makefile.in: Convert to ./ throughout.
* Makefile.in: Convert to ./ throughout. Rebuild dependencies
with explicit build rules.
(VPATH): Remove.
(.c.o): Poison.
* configure.ac (pexecute, LIBOBJS): Add ./ .
* maint-tool: Build dependencies with explicit rules.
From-SVN: r76366
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r-- | libiberty/maint-tool | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libiberty/maint-tool b/libiberty/maint-tool index 6b9bf7f2cdb..bfc53042247 100644 --- a/libiberty/maint-tool +++ b/libiberty/maint-tool @@ -213,6 +213,12 @@ sub locals_first { 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); @@ -260,10 +266,10 @@ sub deps { @deps = sort { &locals_first($a,$b) } keys %scanned; $obj = $f; $obj =~ s/\.c$/.o/; - $obj = "$obj:"; + $obj = "./$obj:"; 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) { @@ -275,7 +281,12 @@ sub deps { } } print OUT "\n"; + } else { + print OUT "$obj \$(srcdir)/$f\n"; } + $c = $crule; + $c =~ s@\$\<@\$\(srcdir\)\/$f@g; + print OUT $c; } } closedir(S); |