blob: 0e5340742620bc332df4ad49737fac072738d338 [file] [log] [blame]
David S. Millera6f68032013-03-20 15:07:56 -04001# Makefile for net selftests
2
Daniel Borkmann23a95442013-04-02 13:00:51 +00003CFLAGS = -Wall -O2 -g
David S. Millera6f68032013-03-20 15:07:56 -04004
5CFLAGS += -I../../../../usr/include/
6
Craig Gallekd6a61f82016-04-12 13:11:26 -04007NET_PROGS = socket psock_fanout psock_tpacket reuseport_bpf reuseport_bpf_cpu reuseport_dualstack
David S. Millera6f68032013-03-20 15:07:56 -04008
9all: $(NET_PROGS)
10%: %.c
11 $(CC) $(CFLAGS) -o $@ $^
12
Michael Ellerman5e29a912015-03-11 15:05:59 +110013TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
Michael Ellerman32dcfba2015-03-11 15:06:00 +110014TEST_FILES := $(NET_PROGS)
Michael Ellerman5e29a912015-03-11 15:05:59 +110015
16include ../lib.mk
17
David S. Millera6f68032013-03-20 15:07:56 -040018clean:
19 $(RM) $(NET_PROGS)