diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-26 16:50:55 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-26 16:51:58 +0100 |
commit | ff7e5dfe30bcb2e49da56aac7566a435fbb09c52 (patch) | |
tree | 08f504187f76fa2080f551a0dff0fae5b92c1e2e | |
parent | systemd: update documentation URL (diff) | |
download | wireguard-tools-ff7e5dfe30bcb2e49da56aac7566a435fbb09c52.tar.xz wireguard-tools-ff7e5dfe30bcb2e49da56aac7566a435fbb09c52.zip |
Makefile: DEBUG_TOOLS -> DEBUG and document
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -36,6 +36,7 @@ This command takes into account several environment variables: * `WITH_BASHCOMPLETION` default: [auto-detect] * `WITH_WGQUICK` default: [auto-detect] * `WITH_SYSTEMDUNITS` default: [auto-detect] + * `DEBUG` default: The first section is rather standard. The second section is not: @@ -61,6 +62,8 @@ The first section is rather standard. The second section is not: should set it to `no`. If systemd isn't auto-detected, but you still would like to install it, set this to `yes`. + * `DEBUG` decides whether to build with `-g`, when set to `yes`. + If you're a simple `make && make install` kind of user, you can get away with not setting these variables and relying on the auto-detection. However, if you're writing a package for a distro, you'll want to explicitly set these, diff --git a/src/Makefile b/src/Makefile index f8eaebf..de1a16c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -43,7 +43,7 @@ CFLAGS += -std=gnu99 -D_GNU_SOURCE CFLAGS += -Wall -Wextra CFLAGS += -MMD -MP CFLAGS += -DRUNSTATEDIR="\"$(RUNSTATEDIR)\"" -ifeq ($(DEBUG_TOOLS),y) +ifeq ($(DEBUG),yes) CFLAGS += -g endif ifeq ($(PLATFORM),linux) |