]> git.ipfire.org Git - thirdparty/zstd.git/commit
decouple zstd object files from lib/ 2367/head
authorYann Collet <yann.collet.73@gmail.com>
Wed, 21 Oct 2020 01:16:11 +0000 (18:16 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 21 Oct 2020 01:16:11 +0000 (18:16 -0700)
commit684f8ea970f15a19f82728d596ecfbf509ea686f
treec9ce6713b1040c42808c8ff0e9e001f42c0c894b
parenta9f7e77d440bc2c8694a78f4cdc4403a72b2df85
decouple zstd object files from lib/

That was a subtle one :
VPATH is affecting search for both %.c source and %.o object files.
This meant that, when an object file already exists in lib/,
it's used in programs/,
even though programs/ is supposed to generate its own %.o object files.

With the new vpath directive, this is no longer the case :
the search is only activated for %.c source files.
Now, local programs/%.o are always generated
even if equivalent ones are already created in lib/.

It more clearly guarantees that lib/ and programs/ can use different compilation directives
without mixing resulting %.o object files.
programs/Makefile