Skip to contentSkip to conversation

Make with dependency checking

PATCH New Stefan Weil 1 participant 1 message Sep 24, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make with dependency checking

This small patch adds dependency checking for QEMU make. So I no longer have to rebuild all after a cvs update...

Regards
Stefan

Makefile.target 24 Sep 2006 10:15:30 -0000 renamed from Makefile.target 23 Sep 2006 17:40:57 -0000 1.128 +2 -0
diff -u -b -B -r1.128 Makefile.target
@@ -1,4 +1,5 @@
 include config.mak
+-include *.d
 
 TARGET_BASE_ARCH:=$(TARGET_ARCH)
 ifeq ($(TARGET_ARCH), x86_64)
@@ -19,6 +20,7 @@
 endif
 CFLAGS=-Wall -O2 -g -fno-strict-aliasing
 #CFLAGS+=-Werror
+CFLAGS += -MMD
 LDFLAGS=-g
 LIBS=
 HELPER_CFLAGS=$(CFLAGS)