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)