Re: [Qemu-devel] [PATCH v11 3/8] rule.mak: allow per object cflags and libs

2013-09-29 Thread Wenchao Xia
Some code are spent for nest case since the build system does not support subdir Makefile. It would be nice if qemu can change the build system like kernel's build system one day, then we can avoid these troubles. The code looks fine. Reviewed-by: Wenchao Xia

[Qemu-devel] [PATCH v11 3/8] rule.mak: allow per object cflags and libs

2013-09-17 Thread Fam Zheng
Adds extract-libs in LINK to expand any "per object libs", the syntax to define such a libs options is like: foo.o-libs := $(CURL_LIBS) in block/Makefile.objs. Similarly, foo.o-cflags := $(FOO_CFLAGS) is also supported. "foo.o" must be listed a nested var (e.g. common-obj-y) t