ld: dependency tracking fixes

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Sun Aug 23 11:31:00 GMT 2009


Yeah, I managed to add a few typos in ld/Makefile.am as well, and forgot
the dependency tracking for eelf32_spu.o.  OK to commit?

Thanks, and sorry about that,
Ralf

ld/ChangeLog:
2009-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
	rules.
	(eelf32_spu.o): Add dependency tracking.
	* Makefile.in: Regenerate.

Index: ld/Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.271
diff -u -r1.271 Makefile.am
--- ld/Makefile.am	22 Aug 2009 19:02:57 -0000	1.271
+++ ld/Makefile.am	23 Aug 2009 09:49:30 -0000
@@ -518,7 +518,7 @@
 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
-	source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
+	source='ldmain.c' object='$@' libtool=no @AMDEPBACKSLASH@
 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
 	$(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
@@ -535,7 +535,7 @@
 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
-	source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
+	source='ldfile.c' object='$@' libtool=no @AMDEPBACKSLASH@
 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
 	$(COMPILE) -c -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
@@ -544,8 +544,18 @@
 endif
 
 eelf32_spu.o: eelf32_spu.c
+if am__fastdepCC
+	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
+	  -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" eelf32_spu.c
+	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+else
+if AMDEP
+	source='eelf32_spu.c' object='$@' libtool=no @AMDEPBACKSLASH@
+	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+endif
 	$(COMPILE) -c -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" \
 	  eelf32_spu.c
+endif
 
 ldemul-list.h: Makefile
 	(echo "/* This file is automatically generated.  DO NOT EDIT! */";\



More information about the Binutils mailing list