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