diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-22 19:10:56 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-22 19:10:56 +0000 |
commit | acecd7dcb2bfb05164ec5b76bbb0f45ae9a1346b (patch) | |
tree | 3c82a4f9075b890c94f602bad300018311f34f4e /libiberty/maint-tool | |
parent | b7f41348bd337cf547becac403702d5af0b18ad5 (diff) | |
download | gcc-acecd7dcb2bfb05164ec5b76bbb0f45ae9a1346b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76366 138bc75d-0d04-0410-961f-82ee72b054a4
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); |