test Makefile: Use 'vpath' for out-of-source builds and not 'VPAT…

If VPATH is used, object files are also looked up in the source directory [1],
and this has some disadvantages like a simultaneous in-source build and
out-of-source build is not possible:

$ cd "$KUT" && ./configure && make -j
# This command fails
$ mkdir ../build && cd ../build && "../$KUT/configure" && make -j

Use 'vpath' [2] only for *.c, *.s, and *.S files and not for *.lds files, as
this is not necessary as all *.lds prerequisites already use $(SRCDIR)/*.lds.

[1] https://www.gnu.org/software/make/manual/html_node/General-Search.html
[2] https://www.gnu.org/software/make/manual/html_node/Selective-Search.html

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Message-ID: <20250128104141.58693-1-mhartmay@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

Thomas Huth avatar Thomas Huth

Push event #296 passed

  • Ran for
AMD64
no language set
Git

Sorry, we're having troubles fetching jobs. Please try again later.