Makefile 377 字节
Newer Older
1
# Makefile for net selftests
2

3
CFLAGS = -Wall -O2 -g
4 5 6

CFLAGS += -I../../../../usr/include/

7
NET_PROGS = socket psock_fanout psock_tpacket reuseport_bpf reuseport_bpf_cpu reuseport_dualstack
8

9
all: $(NET_PROGS)
10 11 12
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

13
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
M
Michael Ellerman 已提交
14
TEST_FILES := $(NET_PROGS)
15 16 17

include ../lib.mk

18
clean:
19
	$(RM) $(NET_PROGS)