1LIBDIR := ../../../lib 2BPFOBJ := $(LIBDIR)/bpf/bpf.o 3 4CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I$(LIBDIR) 5 6test_objs = test_verifier test_tag test_maps test_lru_map test_lpm_map 7 8TEST_PROGS := $(test_objs) test_kmod.sh 9TEST_FILES := $(test_objs) 10 11.PHONY: all clean force 12 13all: $(test_objs) 14 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) 22 23include ../lib.mk 24 25clean: 26 $(RM) $(test_objs) 27