com32/MCONFIG: generate dependency files by default
authorH. Peter Anvin <hpa@zytor.com>
Sun, 26 Apr 2009 22:41:26 +0000 (15:41 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 26 Apr 2009 22:41:26 +0000 (15:41 -0700)
Generate the dependency files by default.  They should perhaps even
move into the actual rule lines.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/MCONFIG

index 641111a..599cfb6 100644 (file)
@@ -35,8 +35,10 @@ endif
 CFLAGS     = $(GCCOPT) -W -Wall -march=i386 \
             -fomit-frame-pointer -D__COM32__ \
             -nostdinc -iwithprefix include \
-            -I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE)
-SFLAGS     = $(GCCOPT) -D__COM32__ -march=i386
+            -I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE) \
+            -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
+SFLAGS     = $(GCCOPT) -D__COM32__ -march=i386 \
+            -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
 LDFLAGS    = -m elf_i386 -T $(com32)/lib/com32.ld
 LIBGCC    := $(shell $(CC) $(GCCOPT) --print-libgcc)