1 # SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3 ifneq ($(KERNELRELEASE
),)
5 # This part of the Makefile is used when called by the kernel build system
6 # and defines the modules to be built.
8 obj-m
+= lttng-syscalls-extractor.o
12 # This part of the Makefile is used when the 'make' command is runned in the
13 # base directory of the lttng-modules sources. It sets some environment and
14 # calls the kernel build system to build the actual modules.
16 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
22 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
25 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) clean
28 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) $@