aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index ca95351d96..fa8bb6f8b1 100644
--- a/rules.mak
+++ b/rules.mak
@@ -11,6 +11,8 @@ MAKEFLAGS += -rR
%.m:
%.mak:
+QEMU_CFLAGS += -MMD -MP -MT $@
+
%.o: %.c
$(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")