1 2PROG= wg 3MAN= wg.8 4 5LIBADD= nv 6 7.PATH: ${SRCTOP}/contrib/wireguard-tools 8.PATH: ${SRCTOP}/contrib/wireguard-tools/man 9 10SRCS+= wg.c 11 12SRCS+= config.c 13SRCS+= encoding.c 14SRCS+= ipc.c 15SRCS+= terminal.c 16 17SRCS+= curve25519.c 18 19# Subcommands 20SRCS+= show.c 21SRCS+= showconf.c 22SRCS+= set.c 23SRCS+= setconf.c 24SRCS+= genkey.c 25SRCS+= pubkey.c 26 27# Base should pull RUNSTATEDIR from paths.h, _PATH_VARRUN 28CFLAGS+= -include paths.h 29CFLAGS+= -DRUNSTATEDIR="_PATH_VARRUN" 30 31# Not going to change this one. 32CWARNFLAGS.curve25519.c+= -Wno-shadow 33 34# sockaddr{,_in} alignment 35CWARNFLAGS.config.c+= -Wno-cast-align 36CWARNFLAGS.ipc.c+= -Wno-cast-align 37 38.include <bsd.prog.mk> 39