dd1aa7b
--- gdb-6.8/gdb/Makefile.in-orig	2008-06-17 15:16:20.000000000 +0200
dd1aa7b
+++ gdb-6.8/gdb/Makefile.in	2008-06-17 15:17:01.000000000 +0200
dd1aa7b
@@ -1100,16 +1100,22 @@ YYOBJ = c-exp.o \
dd1aa7b
 
dd1aa7b
 DISTSTUFF = $(YYFILES)
dd1aa7b
 
dd1aa7b
+DEPDIR = .deps
dd1aa7b
+
dd1aa7b
 # Prevent Sun make from putting in the machine type.  Setting
dd1aa7b
 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
dd1aa7b
 .c.o:
dd1aa7b
-	$(CC) -c $(INTERNAL_CFLAGS) $<
dd1aa7b
+	@mkdir -p $(DEPDIR)
dd1aa7b
+	$(CC) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c $(INTERNAL_CFLAGS) $<
dd1aa7b
+	@mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
dd1aa7b
 
dd1aa7b
 all: gdb$(EXEEXT) $(CONFIG_ALL)
dd1aa7b
 	@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
dd1aa7b
 .PHONY: all-tui
dd1aa7b
 all-tui: $(TUI)$(EXEEXT)
dd1aa7b
 
dd1aa7b
+-include $(DEPDIR)/*.Po
dd1aa7b
+
dd1aa7b
 installcheck:
dd1aa7b
 
dd1aa7b
 # The check target can not use subdir_do, because subdir_do does not