summaryrefslogtreecommitdiffstats
path: root/Makefile.hw
diff options
context:
space:
mode:
authorPaolo Bonzini2009-12-21 10:06:55 +0100
committerAnthony Liguori2010-01-08 16:58:40 +0100
commit076d247142c1ff1e4d618557fc0acc62f6eb2a7c (patch)
tree91ba69a991591e278ba72675b17fd95bbfd091bf /Makefile.hw
parentoss: workaround for cases when OSS_GETVERSION is not defined (diff)
downloadqemu-076d247142c1ff1e4d618557fc0acc62f6eb2a7c.tar.gz
qemu-076d247142c1ff1e4d618557fc0acc62f6eb2a7c.tar.xz
qemu-076d247142c1ff1e4d618557fc0acc62f6eb2a7c.zip
Use vpath directive
The vpath directive has two advantages over the VPATH variable: 1) it allows to skip searching of .o files; 2) the default semantics are to append to the vpath, so there is no confusion between "VPATH=xyz" and "VPATH+=xyz". Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper macro to append one or more directories to the vpath. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'Makefile.hw')
-rw-r--r--Makefile.hw2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.hw b/Makefile.hw
index ff87ae414d..be35359e8c 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -7,7 +7,7 @@ include $(SRC_PATH)/rules.mak
.PHONY: all
-VPATH=$(SRC_PATH):$(SRC_PATH)/hw
+$(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
QEMU_CFLAGS+=-I.. -I$(SRC_PATH)/fpu