2 BPFDIR
:= $(LIBDIR
)/bpf
4 CFLAGS
+= -Wall
-O2
-I..
/..
/..
/include/uapi
-I
$(LIBDIR
) -I..
/..
/..
/include
7 TEST_GEN_PROGS
= test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs
9 TEST_GEN_FILES
= test_pkt_access.o test_xdp.o test_l4lb.o
11 TEST_PROGS
:= test_kmod.sh
15 BPFOBJ
:= $(OUTPUT
)/libbpf.a
17 $(TEST_GEN_PROGS
): $(BPFOBJ
)
21 # force a rebuild of BPFOBJ when its dependencies are updated
25 $(MAKE
) -C
$(BPFDIR
) OUTPUT
=$(OUTPUT
)/
30 $(CLANG
) -I..
/..
/..
/include/uapi
-I..
/..
/..
/..
/samples
/bpf
/ \
31 -D__x86_64__
-Wno-compare-distinct-pointer-types \
32 -O2
-target bpf
-c
$< -o
$@