summaryrefslogtreecommitdiff
path: root/usr.bin/wg/Makefile
blob: 4d7ffc19764cf534d73168554e0a337375b5e0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PROG=	wg
MAN=	wg.8

LIBADD=	nv

.PATH: ${SRCTOP}/contrib/wireguard-tools
.PATH: ${SRCTOP}/contrib/wireguard-tools/man

SRCS+=	wg.c

SRCS+=	config.c
SRCS+=	encoding.c
SRCS+=	ipc.c
SRCS+=	terminal.c

SRCS+=	curve25519.c

# Subcommands
SRCS+=	show.c
SRCS+=	showconf.c
SRCS+=	set.c
SRCS+=	setconf.c
SRCS+=	genkey.c
SRCS+=	pubkey.c

# Base should pull RUNSTATEDIR from paths.h, _PATH_VARRUN
CFLAGS+=	-include paths.h
CFLAGS+=	-DRUNSTATEDIR="_PATH_VARRUN"

# Not going to change this one.
CWARNFLAGS.curve25519.c+=	-Wno-shadow

# sockaddr{,_in} alignment
CWARNFLAGS.config.c+=	-Wno-cast-align
CWARNFLAGS.ipc.c+=	-Wno-cast-align

.include <bsd.prog.mk>