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

3
CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
4 5
CFLAGS += -I../../../../usr/include/

6 7 8 9
NET_PROGS =  socket
NET_PROGS += psock_fanout psock_tpacket
NET_PROGS += reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
NET_PROGS += reuseport_dualstack
10

11
all: $(NET_PROGS)
12
reuseport_bpf_numa: LDFLAGS += -lnuma
13
%: %.c
14
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
15

16
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
M
Michael Ellerman 已提交
17
TEST_FILES := $(NET_PROGS)
18 19 20

include ../lib.mk

21
clean:
22
	$(RM) $(NET_PROGS)