1BPF_TESTMOD_DIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) 2KDIR ?= $(abspath $(BPF_TESTMOD_DIR)/../../../../..) 3 4ifeq ($(V),1) 5Q = 6else 7Q = @ 8endif 9 10MODULES = bpf_test_modorder_x.ko 11 12obj-m += bpf_test_modorder_x.o 13 14all: 15 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) modules 16 17clean: 18 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) clean 19 20