Makefile 827 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
# Makefile for net selftests
3

4
CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
5 6
CFLAGS += -I../../../../usr/include/

7
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh
W
Willem de Bruijn 已提交
8
TEST_PROGS += fib_tests.sh fib-onlink-tests.sh in_netns.sh pmtu.sh udpgso.sh
W
Willem de Bruijn 已提交
9
TEST_PROGS += udpgso_bench.sh
10
TEST_GEN_PROGS_EXTENDED := in_netns.sh
11
TEST_GEN_FILES =  socket
12
TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy
13
TEST_GEN_FILES += tcp_mmap tcp_inq
14 15
TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict
W
Willem de Bruijn 已提交
16
TEST_GEN_PROGS += udpgso udpgso_bench_tx udpgso_bench_rx
17 18 19

include ../lib.mk

20
$(OUTPUT)/reuseport_bpf_numa: LDFLAGS += -lnuma
21
$(OUTPUT)/tcp_mmap: LDFLAGS += -lpthread
22
$(OUTPUT)/tcp_inq: LDFLAGS += -lpthread