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