1KMOD= if_wg 2 3SRCS= if_wg.c wg_cookie.c wg_noise.c 4SRCS+= opt_inet6.h 5 6# Help quickly build and test this module alone. 7.if !defined(KERNBUILDDIR) 8KCFLAGS+=-g -DINVARIANTS 9 10opt_inet6.h: 11 echo "#define INET6 1" > ${.TARGET} 12.endif 13 14# Uncomment the following lines to enable selftests. 15#KCFLAGS+=-DWG_SELFTESTS 16#KCFLAGS+=-DWG_ALLOWEDIPS_RANDOMIZED_TEST # NOTE: can take >10 minutes. 17 18# Header files are installed by 'include/Makefile'. 19# XXX: should install only 'if_wg.h' but no other header files. 20 21.include <bsd.kmod.mk> 22