1 BPF_TESTMOD_DIR
:= $(realpath
$(dir $(abspath
$(lastword
$(MAKEFILE_LIST
)))))
2 KDIR ?
= $(abspath
$(BPF_TESTMOD_DIR
)/..
/..
/..
/..
/..
)
10 MODULES
= bpf_testmod.ko
12 obj-m
+= bpf_testmod.o
13 CFLAGS_bpf_testmod.o
= -I
$(src
)
16 +$(Q
)make
-C
$(KDIR
) M
=$(BPF_TESTMOD_DIR
) modules
19 +$(Q
)make
-C
$(KDIR
) M
=$(BPF_TESTMOD_DIR
) clean