From 54b2075e29b46268f41833e0480e8e1125c80653 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 27 Aug 2021 14:59:42 -0700 Subject: 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 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-59-g8ed1b