xref: /linux/tools/testing/selftests/bpf/bpf_testmod/Makefile (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
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_testmod.ko
11
12obj-m += bpf_testmod.o
13CFLAGS_bpf_testmod.o = -I$(src)
14
15all:
16	+$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) modules
17
18clean:
19	+$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) clean
20
21