xref: /linux-6.15/tools/testing/selftests/net/Makefile (revision cee2cfb7)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for net selftests
2
3CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
4CFLAGS += -I../../../../usr/include/
5
6NET_PROGS =  socket
7NET_PROGS += psock_fanout psock_tpacket
8NET_PROGS += reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
9NET_PROGS += reuseport_dualstack
10
11all: $(NET_PROGS)
12reuseport_bpf_numa: LDFLAGS += -lnuma
13%: %.c
14	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
15
16TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
17TEST_FILES := $(NET_PROGS)
18
19include ../lib.mk
20
21clean:
22	$(RM) $(NET_PROGS)
23

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026