Add -MF to GCC invocation to make ccache happy on Fedora Core 6.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 9 Jan 2007 17:46:42 +0000 (17:46 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 9 Jan 2007 17:46:42 +0000 (17:46 +0000)
src/Make.config

index becc4744728a84bad482f1dec78d3d638c951968..4dd2eb1cd6fc9e5ceaef2a7777c3f4a780e55923 100644 (file)
@@ -33,13 +33,14 @@ endif
 # Compiler and assembler invocation.
 DEFINES =
 WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
 # Compiler and assembler invocation.
 DEFINES =
 WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
-CFLAGS = -g -MMD -msoft-float -O
+CFLAGS = -g -msoft-float -O
 CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib
 CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib
-ASFLAGS = -Wa,--gstabs -MMD
+ASFLAGS = -Wa,--gstabs
 LDFLAGS = 
 LDFLAGS = 
+DEPS = -MMD -MF $(@:.o=.d)
 
 %.o: %.c
 
 %.o: %.c
-       $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES)
+       $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES) $(DEPS)
 
 %.o: %.S
 
 %.o: %.S
-       $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES)
+       $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES) $(DEPS)