David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 1 | # Makefile for net selftests |
| 2 | |
Daniel Borkmann | 3c2c3c1 | 2016-10-21 12:46:34 +0200 | [diff] [blame^] | 3 | CFLAGS = -Wall -Wl,--no-as-needed -O2 -g |
David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 4 | CFLAGS += -I../../../../usr/include/ |
| 5 | |
Daniel Borkmann | 3c2c3c1 | 2016-10-21 12:46:34 +0200 | [diff] [blame^] | 6 | NET_PROGS = socket |
| 7 | NET_PROGS += psock_fanout psock_tpacket |
| 8 | NET_PROGS += reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa |
| 9 | NET_PROGS += reuseport_dualstack |
David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 10 | |
| 11 | all: $(NET_PROGS) |
Daniel Borkmann | 3c2c3c1 | 2016-10-21 12:46:34 +0200 | [diff] [blame^] | 12 | reuseport_bpf_numa: LDFLAGS += -lnuma |
David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 13 | %: %.c |
Daniel Borkmann | 3c2c3c1 | 2016-10-21 12:46:34 +0200 | [diff] [blame^] | 14 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ |
David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 15 | |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 16 | TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh |
Michael Ellerman | 32dcfba | 2015-03-11 15:06:00 +1100 | [diff] [blame] | 17 | TEST_FILES := $(NET_PROGS) |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 18 | |
| 19 | include ../lib.mk |
| 20 | |
David S. Miller | a6f6803 | 2013-03-20 15:07:56 -0400 | [diff] [blame] | 21 | clean: |
| 22 | $(RM) $(NET_PROGS) |