summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
blob: 128f6aaa0538b45843a631dbf0cc619b63963881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
CONFIG=GENERIC.MP

WIREGUARD_SRCS=../src/wireguard.c \
	       /usr/src/sys/crypto/blake2s.c \
	       /usr/src/sys/crypto/poly1305.c \
	       /usr/src/sys/crypto/chachapoly.c \
	       /usr/src/sys/crypto/curve25519.c

run: tests
	./tests

tests: tests.c compat.c util.h $(WIREGUARD_SRCS)
	$(CC) tests.c compat.c -lm -O0 -DMALLOC_STATS -Wno-builtin-requires-header -ggdb -o tests -I/usr/src/sys -Wl,-z,notext $(WIREGUARD_SRCS)