2 BPFOBJ
:= $(LIBDIR
)/bpf
/bpf.o
4 CFLAGS
+= -Wall
-O2
-lcap
-I..
/..
/..
/include/uapi
-I
$(LIBDIR
) $(BPFOBJ
)
6 TEST_GEN_PROGS
= test_verifier test_tag test_maps test_lru_map test_lpm_map
8 TEST_PROGS
:= test_kmod.sh
10 all: $(TEST_GEN_PROGS
)
12 .PHONY
: all clean force
14 # force a rebuild of BPFOBJ when its dependencies are updated
18 $(MAKE
) -C
$(dir $(BPFOBJ
))
20 $(test_objs
): $(BPFOBJ
)