diff --git a/cpu/6502/Makefile.6502 b/cpu/6502/Makefile.6502
index d4835fc3e..020ad92b3 100644
--- a/cpu/6502/Makefile.6502
+++ b/cpu/6502/Makefile.6502
@@ -30,7 +30,7 @@
#
# Author: Oliver Schmidt
#
-# $Id: Makefile.6502,v 1.28 2009/07/02 22:36:35 oliverschmidt Exp $
+# $Id: Makefile.6502,v 1.29 2009/07/26 21:27:43 oliverschmidt Exp $
#
ifndef CC65_INC
@@ -81,7 +81,7 @@ CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
$(OBJECTDIR)/%.o: %.c
$(CC) $(CFLAGS) --create-dep $< -o $(@:.o=.s)
@$(AS) $(ASFLAGS) $(@:.o=.s) -o $@
- @sed 's!.s:!.o:!' < $(@:.o=.u) > $(@:.o=.d)
+ @sed -e 's!.s:!.o:!' -e 's!\t! !' < $(@:.o=.u) > $(@:.o=.d)
@rm -f $(@:.o=.s) $(@:.o=.u)
@$(FINALIZE_DEPENDENCY)