blob: e24e4c82542e076856c0b99463e9e8cbb1363211 [file] [log] [blame]
David S. Millera6f68032013-03-20 15:07:56 -04001# Makefile for net selftests
2
Daniel Borkmann3c2c3c12016-10-21 12:46:34 +02003CFLAGS = -Wall -Wl,--no-as-needed -O2 -g
David S. Millera6f68032013-03-20 15:07:56 -04004CFLAGS += -I../../../../usr/include/
5
Daniel Borkmann3c2c3c12016-10-21 12:46:34 +02006NET_PROGS = socket
7NET_PROGS += psock_fanout psock_tpacket
8NET_PROGS += reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
9NET_PROGS += reuseport_dualstack
David S. Millera6f68032013-03-20 15:07:56 -040010
11all: $(NET_PROGS)
Daniel Borkmann3c2c3c12016-10-21 12:46:34 +020012reuseport_bpf_numa: LDFLAGS += -lnuma
David S. Millera6f68032013-03-20 15:07:56 -040013%: %.c
Daniel Borkmann3c2c3c12016-10-21 12:46:34 +020014 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
David S. Millera6f68032013-03-20 15:07:56 -040015
Michael Ellerman5e29a912015-03-11 15:05:59 +110016TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
Michael Ellerman32dcfba2015-03-11 15:06:00 +110017TEST_FILES := $(NET_PROGS)
Michael Ellerman5e29a912015-03-11 15:05:59 +110018
19include ../lib.mk
20
David S. Millera6f68032013-03-20 15:07:56 -040021clean:
22 $(RM) $(NET_PROGS)