1# SPDX-License-Identifier: GPL-2.0 2# Makefile for net selftests 3 4CFLAGS = -Wall -Wl,--no-as-needed -O2 -g 5CFLAGS += -I../../../../usr/include/ 6 7TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh 8TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh 9TEST_PROGS += udpgso_bench.sh fib_rule_tests.sh msg_zerocopy.sh psock_snd.sh 10TEST_PROGS += test_vxlan_fdb_changelink.sh 11TEST_PROGS_EXTENDED := in_netns.sh 12TEST_GEN_FILES = socket 13TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy 14TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd 15TEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag 16TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa 17TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls 18 19KSFT_KHDR_INSTALL := 1 20include ../lib.mk 21 22$(OUTPUT)/reuseport_bpf_numa: LDFLAGS += -lnuma 23$(OUTPUT)/tcp_mmap: LDFLAGS += -lpthread 24$(OUTPUT)/tcp_inq: LDFLAGS += -lpthread 25