mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
e726fe7d60
commit
076d247142
7 changed files with 16 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue