From: Ben Pfaff Date: Tue, 9 Jan 2007 17:46:42 +0000 (+0000) Subject: Add -MF to GCC invocation to make ccache happy on Fedora Core 6. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=a43de5270109e60db2284c929a368b083e1ff316 Add -MF to GCC invocation to make ccache happy on Fedora Core 6. --- diff --git a/src/Make.config b/src/Make.config index becc474..4dd2eb1 100644 --- a/src/Make.config +++ b/src/Make.config @@ -33,13 +33,14 @@ endif # 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 -ASFLAGS = -Wa,--gstabs -MMD +ASFLAGS = -Wa,--gstabs LDFLAGS = +DEPS = -MMD -MF $(@:.o=.d) %.o: %.c - $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES) + $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES) $(DEPS) %.o: %.S - $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES) + $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES) $(DEPS)