@@ -134,7 +134,7 @@ LIB_PATH =
134
134
BASEDIR = $(srcdir ) /..
135
135
BFDDIR = $(BASEDIR ) /bfd
136
136
INCDIR = $(BASEDIR ) /include
137
- DEP = mkdep
137
+ MKDEP = mkdep
138
138
139
139
# What version of the manual to build
140
140
DOCVER = gen
@@ -368,7 +368,7 @@ MAINTAINERCLEANFILES = ldver.texi
368
368
MOSTLYCLEANFILES = $( STAGESTUFF) ld1$( EXEEXT) ld2$( EXEEXT) ld3$( EXEEXT) \
369
369
ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
370
370
371
- CLEANFILES = dep.sed .dep .dep1
371
+ CLEANFILES = dep.sed DEP DEP1
372
372
373
373
# Stuff that should be included in a distribution. The diststuff
374
374
# target is run by the taz target in ../Makefile.in.
@@ -1458,37 +1458,37 @@ distclean-local:
1458
1458
rm -rf ldscripts
1459
1459
1460
1460
# Targets to rebuild dependencies in this Makefile.
1461
- # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
1462
- .dep : dep.sed $( CFILES) $( HFILES) $( GENERATED_CFILES) $( GENERATED_HFILES) config.h
1463
- rm -f .dep1
1464
- $( MAKE) DEP =$( DEP ) .dep1
1465
- sed -f dep.sed < .dep1 > .dep
1461
+ # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1462
+ DEP : dep.sed $( CFILES) $( HFILES) $( GENERATED_CFILES) $( GENERATED_HFILES) config.h
1463
+ rm -f DEP1
1464
+ $( MAKE) MKDEP =$( MKDEP ) DEP1
1465
+ sed -f dep.sed < DEP1 > DEP
1466
1466
1467
1467
# This rule really wants a mkdep that runs "gcc -MM".
1468
- .dep1 : $( CFILES) $( GENERATED_CFILES)
1469
- rm -f .dep2
1470
- echo ' # DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
1471
- $( DEP ) -f .dep2 $( INCLUDES) $?
1472
- $( srcdir) /../move-if-change .dep2 .dep1
1468
+ DEP1 : $( CFILES) $( GENERATED_CFILES)
1469
+ rm -f DEP2
1470
+ echo ' # DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1471
+ $( MKDEP ) -f DEP2 $( INCLUDES) $?
1472
+ $( srcdir) /../move-if-change DEP2 DEP1
1473
1473
1474
1474
dep.sed: dep-in.sed config.status
1475
1475
sed < $( srcdir) /dep-in.sed > dep.sed \
1476
1476
-e ' s!@INCDIR@!$(INCDIR)!' \
1477
1477
-e ' s!@SRCDIR@!$(srcdir)!'
1478
1478
1479
- dep: .dep
1479
+ dep: DEP
1480
1480
sed -e ' /^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1481
- cat .dep >> tmp-Makefile
1481
+ cat DEP >> tmp-Makefile
1482
1482
$( srcdir) /../move-if-change tmp-Makefile Makefile
1483
1483
1484
- dep-in: .dep
1484
+ dep-in: DEP
1485
1485
sed -e ' /^..DO NOT DELETE THIS LINE/,$$d' < $( srcdir) /Makefile.in > tmp-Makefile.in
1486
- cat .dep >> tmp-Makefile.in
1486
+ cat DEP >> tmp-Makefile.in
1487
1487
$( srcdir) /../move-if-change tmp-Makefile.in $( srcdir) /Makefile.in
1488
1488
1489
- dep-am: .dep
1489
+ dep-am: DEP
1490
1490
sed -e ' /^..DO NOT DELETE THIS LINE/,$$d' < $( srcdir) /Makefile.am > tmp-Makefile.am
1491
- cat .dep >> tmp-Makefile.am
1491
+ cat DEP >> tmp-Makefile.am
1492
1492
$( srcdir) /../move-if-change tmp-Makefile.am $( srcdir) /Makefile.am
1493
1493
1494
1494
.PHONY: dep dep-in dep-am
@@ -1515,7 +1515,7 @@ ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1515
1515
sysdep.h config.h $( INCDIR) /fopen-same.h $( INCDIR) /libiberty.h \
1516
1516
$( INCDIR) /obstack.h $( INCDIR) /bfdlink.h ld.h ldmain.h \
1517
1517
ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
1518
- ldctor.h ldfile.h $( INCDIR) /fnmatch.h
1518
+ ldctor.h ldfile.h $( INCDIR) /fnmatch.h $( INCDIR ) /demangle.h
1519
1519
ldmain.o: ldmain.c ../bfd/bfd.h $( INCDIR) /ansidecl.h \
1520
1520
sysdep.h config.h $( INCDIR) /fopen-same.h $( INCDIR) /libiberty.h \
1521
1521
$( INCDIR) /progress.h $( INCDIR) /bfdlink.h ld.h ldmain.h \
0 commit comments