2 BPFDIR
:= $(LIBDIR
)/bpf
3 APIDIR
:= ..
/..
/..
/include/uapi
4 GENDIR
:= ..
/..
/..
/..
/include/generated
5 GENHDR
:= $(GENDIR
)/autoconf.h
7 ifneq ($(wildcard $(GENHDR
)),)
8 GENFLAGS
:= -DHAVE_GENHDR
11 CFLAGS
+= -Wall
-O2
-I
$(APIDIR
) -I
$(LIBDIR
) -I
$(GENDIR
) $(GENFLAGS
)
14 TEST_GEN_PROGS
= test_verifier test_tag test_maps test_lru_map test_lpm_map
16 TEST_PROGS
:= test_kmod.sh
20 BPFOBJ
:= $(OUTPUT
)/bpf.o
22 $(TEST_GEN_PROGS
): $(BPFOBJ
)
26 # force a rebuild of BPFOBJ when its dependencies are updated
30 $(MAKE
) -C
$(BPFDIR
) OUTPUT
=$(OUTPUT
)/