aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/bpf/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index a35f564f66a1..c7816fe60feb 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -1,13 +1,24 @@
1CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I../../../lib 1LIBDIR := ../../../lib
2BPFOBJ := $(LIBDIR)/bpf/bpf.o
3
4CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I$(LIBDIR)
2 5
3test_objs = test_verifier test_tag test_maps test_lru_map test_lpm_map 6test_objs = test_verifier test_tag test_maps test_lru_map test_lpm_map
4 7
5TEST_PROGS := $(test_objs) test_kmod.sh 8TEST_PROGS := $(test_objs) test_kmod.sh
6TEST_FILES := $(test_objs) 9TEST_FILES := $(test_objs)
7 10
11.PHONY: all clean force
12
8all: $(test_objs) 13all: $(test_objs)
9 14
10$(test_objs): ../../../lib/bpf/bpf.o 15# force a rebuild of BPFOBJ when its dependencies are updated
16force:
17
18$(BPFOBJ): force
19 $(MAKE) -C $(dir $(BPFOBJ))
20
21$(test_objs): $(BPFOBJ)
11 22
12include ../lib.mk 23include ../lib.mk
13 24