mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
37 lines
646 B
Makefile
37 lines
646 B
Makefile
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>
|