Commit | Line | Data |
---|---|---|
a6f68034 | 1 | # Makefile for net selftests |
77f65ebd | 2 | |
23a95442 | 3 | CFLAGS = -Wall -O2 -g |
77f65ebd WB |
4 | |
5 | CFLAGS += -I../../../../usr/include/ | |
6 | ||
d6a61f80 | 7 | NET_PROGS = socket psock_fanout psock_tpacket reuseport_bpf reuseport_bpf_cpu reuseport_dualstack |
77f65ebd | 8 | |
a6f68034 | 9 | all: $(NET_PROGS) |
77f65ebd WB |
10 | %: %.c |
11 | $(CC) $(CFLAGS) -o $@ $^ | |
12 | ||
5e29a910 | 13 | TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh |
32dcfba6 | 14 | TEST_FILES := $(NET_PROGS) |
5e29a910 ME |
15 | |
16 | include ../lib.mk | |
17 | ||
77f65ebd | 18 | clean: |
a6f68034 | 19 | $(RM) $(NET_PROGS) |