diff options
| author | Paolo Bonzini | 2009-12-21 10:06:55 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2010-01-08 16:58:40 +0100 |
| commit | 076d247142c1ff1e4d618557fc0acc62f6eb2a7c (patch) | |
| tree | 91ba69a991591e278ba72675b17fd95bbfd091bf /pc-bios/optionrom | |
| parent | oss: workaround for cases when OSS_GETVERSION is not defined (diff) | |
| download | qemu-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 'pc-bios/optionrom')
| -rw-r--r-- | pc-bios/optionrom/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index 54db882491..b4be31ec8f 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -5,7 +5,8 @@ all: build-all include ../../config-host.mak include $(SRC_PATH)/rules.mak -VPATH=$(SRC_PATH)/pc-bios/optionrom +$(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) + .PHONY : all clean build-all CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
