]> arthur.barton.de Git - bup.git/commit
Rework compilation of binaries; prepare for automatic dependencies
authorRob Browning <rlb@defaultvalue.org>
Sat, 27 Mar 2021 17:56:21 +0000 (12:56 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 28 Mar 2021 21:25:18 +0000 (16:25 -0500)
commitbcc950d99133eeb278aeafeb04f8370555f609e7
treef072d98cb31e27b31d1f26994d91089c75fc2c0f
parent1435fd4fb42f9a304083df0db361ef2ad8b8aba2
Rework compilation of binaries; prepare for automatic dependencies

Don't involve user-adjustable variables like CFLAGS until the final
compilation steps, in part so it's clearer where they fit in.  Handle
all of bup's flags independently, and split them into separate
library (helpers) and executable (bin/bup, etc.)  groups via
bup_shared_cflags, helpers_cflags, embed_cflags, etc.

Change the build rules to specify -fPIE for the executables, and
include all dependencies ($^) and use OUTPUT_OPTION in preparation for
automatic C dependency generation.

Add -Wno-unused-command-line-argument for clang.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Makefile