qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 3/4] build-sys: allow per-object foo.cflags vari


From: Michael Tokarev
Subject: [Qemu-devel] [RFC PATCH 3/4] build-sys: allow per-object foo.cflags variables
Date: Tue, 18 Jun 2013 21:34:03 +0400

In addition to allowing specifying foo.libs for additional
libraries, recognize also foo.cflags variable when compiling
foo.c into foo.o.

This is more for completness/symmetry with foo.libs.

Signed-off-by: Michael Tokarev <address@hidden>
---
 rules.mak |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules.mak b/rules.mak
index 69764b9..6087c68 100644
--- a/rules.mak
+++ b/rules.mak
@@ -18,7 +18,7 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
 QEMU_INCLUDES += -I$(<D) -I$(@D)
 
 %.o: %.c
-       $(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) 
$(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) 
$(QEMU_DGFLAGS) $(CFLAGS) $($*.cflags) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
 %.o: %.rc
        $(call quiet-command,$(WINDRES) -I. -o $@ $<,"  RC    $(TARGET_DIR)$@")
 
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]