diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-06 23:51:00 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-06 23:51:00 +0200 |
commit | 7d7f2fc679e6490badd57e96e80c6e1c0a10bcbb (patch) | |
tree | 8b05d675fbb7b94ae2ecd442dedbd0e7ad083854 /src/tools/Makefile | |
parent | device: move unlikely check to if clause (diff) | |
download | wireguard-monolithic-historical-7d7f2fc679e6490badd57e96e80c6e1c0a10bcbb.tar.xz wireguard-monolithic-historical-7d7f2fc679e6490badd57e96e80c6e1c0a10bcbb.zip |
tools: use pkg-config in Makefile
Diffstat (limited to 'src/tools/Makefile')
-rw-r--r-- | src/tools/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/Makefile b/src/tools/Makefile index 4eddd25..060ae18 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -4,10 +4,11 @@ BINDIR ?= $(PREFIX)/bin LIBDIR ?= $(PREFIX)/lib MANDIR ?= $(PREFIX)/share/man +CFLAGS += $(shell pkg-config --cflags libmnl 2>/dev/null) CFLAGS += -std=gnu11 CFLAGS += -pedantic -Wall -Wextra CFLAGS += -MMD -LDLIBS += -lresolv -lmnl +LDLIBS += -lresolv $(shell pkg-config --libs libmnl 2>/dev/null || echo -lmnl) wg: $(patsubst %.c,%.o,$(wildcard *.c)) |