Cleanup: Remove deprecated TODO file
[lttng-modules.git] / instrumentation / syscalls / lttng-syscalls-extractor / Makefile
CommitLineData
b7cdc182 1# SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
91a383b2
MJ
2
3ifneq ($(KERNELRELEASE),)
4
5 # This part of the Makefile is used when called by the kernel build system
6 # and defines the modules to be built.
7
8 obj-m += lttng-syscalls-extractor.o
9
10else # KERNELRELEASE
11
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.
15
16KERNELDIR ?= /lib/modules/$(shell uname -r)/build
17PWD := $(shell pwd)
18CFLAGS = $(EXTCFLAGS)
19
20default: modules
21
22modules:
23 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
24
25clean:
26 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
27
28%.i: %.c
29 $(MAKE) -C $(KERNELDIR) M=$(PWD) $@
30
31endif # KERNELRELEASE
This page took 0.0243 seconds and 4 git commands to generate.