diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-08-27 14:59:42 -0700 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-10 18:56:32 +0200 |
commit | 54b2075e29b46268f41833e0480e8e1125c80653 (patch) | |
tree | 92edf5de35f1582b3924a3cd5643c2b7049fca4f | |
parent | if_wg: account for input function returning a boolean (diff) | |
download | wireguard-freebsd-54b2075e29b46268f41833e0480e8e1125c80653.tar.xz wireguard-freebsd-54b2075e29b46268f41833e0480e8e1125c80653.zip |
build: only include compat.h for if_wg.c and fix build with an obj directory
In particular, this permits building the module as part of a kernel
build via the LOCAL_MODULES facility.
Signed-off-by: John Baldwin <jhb@FreeBSD.org>
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index e787882..768aabb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,6 +6,6 @@ SRCS= opt_inet.h opt_inet6.h device_if.h bus_if.h ifdi_if.h SRCS+= if_wg.c wg_noise.c wg_cookie.c crypto.c -CFLAGS+= -include compat.h +CFLAGS.if_wg.c+= -include ${.CURDIR}/compat.h .include <bsd.kmod.mk> |