1*9f7fa225SAndrii NakryikoBPF_TESTMOD_DIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) 2*9f7fa225SAndrii NakryikoKDIR ?= $(abspath $(BPF_TESTMOD_DIR)/../../../../..) 3*9f7fa225SAndrii Nakryiko 4*9f7fa225SAndrii Nakryikoifeq ($(V),1) 5*9f7fa225SAndrii NakryikoQ = 6*9f7fa225SAndrii Nakryikoelse 7*9f7fa225SAndrii NakryikoQ = @ 8*9f7fa225SAndrii Nakryikoendif 9*9f7fa225SAndrii Nakryiko 10*9f7fa225SAndrii NakryikoMODULES = bpf_testmod.ko 11*9f7fa225SAndrii Nakryiko 12*9f7fa225SAndrii Nakryikoobj-m += bpf_testmod.o 13*9f7fa225SAndrii NakryikoCFLAGS_bpf_testmod.o = -I$(src) 14*9f7fa225SAndrii Nakryiko 15*9f7fa225SAndrii Nakryikoall: 16*9f7fa225SAndrii Nakryiko +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) modules 17*9f7fa225SAndrii Nakryiko 18*9f7fa225SAndrii Nakryikoclean: 19*9f7fa225SAndrii Nakryiko +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) clean 20*9f7fa225SAndrii Nakryiko 21