mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13: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
|
@ -1,5 +1,6 @@
|
|||
-include ../config-host.mak
|
||||
VPATH=$(SRC_PATH)/tests
|
||||
|
||||
$(call set-vpath, $(SRC_PATH)/tests)
|
||||
|
||||
CFLAGS=-Wall -O2 -g -fno-strict-aliasing
|
||||
#CFLAGS+=-msse2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue