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?a=commitdiff_plain;h=0147215f6360d42fad81ce164b661054f572ac15;p=pintos-anon 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)