]> git.proxmox.com Git - mirror_qemu.git/commit - Makefile.target
rules.mak: fix $(obj) to a real relative path
authorFam Zheng <famz@redhat.com>
Mon, 10 Feb 2014 06:48:52 +0000 (14:48 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Feb 2014 12:12:54 +0000 (13:12 +0100)
commitba1183da9a10b94611cad88c44a5c6df005f9b55
treed9be4600b1301c9c2d39ae78aded3a464dff361e
parent10f5bff622cad71645e22c027b77ac31e51008ef
rules.mak: fix $(obj) to a real relative path

Makefile.target includes rule.mak and unnested common-obj-y, then prefix
them with '../', this will ignore object specific QEMU_CFLAGS in subdir
Makefile.objs:

    $(obj)/curl.o: QEMU_CFLAGS += $(CURL_CFLAGS)

Because $(obj) here is './block', instead of '../block'. This doesn't
hurt compiling because we basically build all .o from top Makefile,
before entering Makefile.target, but it will affact arriving per-object
libs support.

The starting point of $(obj) is passed in as argument of unnest-vars, as
well as nested variables, so that different Makefiles can pass in a
right value.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile
Makefile.objs
Makefile.target
configure
rules.mak