[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/9] build: add object directory to QEMU_INCLUDES
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 5/9] build: add object directory to QEMU_INCLUDES |
Date: |
Mon, 17 Sep 2012 18:44:59 +0200 |
When using a recursive make, -I. will automatically let you include
generated files from a nested directory. This doesn't work for
nonrecursive make such as the one used by QEMU. Add a rule that
fixes this.
Signed-off-by: Paolo Bonzini <address@hidden>
---
rules.mak | 3 +++
1 file modificato, 3 inserzioni(+)
diff --git a/rules.mak b/rules.mak
index 1b173aa..0327426 100644
--- a/rules.mak
+++ b/rules.mak
@@ -14,6 +14,9 @@ MAKEFLAGS += -rR
# Flags for dependency generation
QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
+# Same as -I., but for the object directory
+QEMU_CFLAGS += -I$(@D)
+
%.o: %.c
$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS)
$(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
--
1.7.12
- [Qemu-devel] [PATCH 0/9] build cleanups, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 1/9] tools: split monitor-dummy.c, clean up qemu-tool.c, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 3/9] build: avoid duplicate appearance of files, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 4/9] qemu-ga: do not include the QEMU main loop and dependencies, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 2/9] block: move QEMUIOVector functions to iov.c, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 6/9] build: add $(TARGET_DIR) to "GEN config-target.h" lines, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 5/9] build: add object directory to QEMU_INCLUDES,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 7/9] build: use nesting magic for tools-obj-y, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 9/9] libcacard: remove dependency on QEMU main loop, Paolo Bonzini, 2012/09/17
- [Qemu-devel] [PATCH 8/9] libcacard: add include/ to CFLAGS, Paolo Bonzini, 2012/09/17
- Re: [Qemu-devel] [PATCH 0/9] build cleanups, Paolo Bonzini, 2012/09/19