Cleanup: remove unused EXTCFLAGS from Makefile
[lttng-modules.git] / Makefile
... / ...
CommitLineData
1# SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
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
8obj-$(CONFIG_LTTNG) += src/
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)
18
19default: modules
20
21modules:
22 $(MAKE) -C $(KERNELDIR) M=$(PWD)/src CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
23
24modules_install:
25 $(MAKE) -C $(KERNELDIR) M=$(PWD)/src CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules_install
26
27clean:
28 $(MAKE) -C $(KERNELDIR) M=$(PWD)/src clean
29
30# The following targets are used for development and debugging. They are not
31# part of the build system.
32%.i: %.c
33 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m $@
34
35%.o: %.c
36 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m $@
37
38endif # KERNELRELEASE
This page took 0.022211 seconds and 4 git commands to generate.