Add block layer trace event support
[lttng-modules.git] / probes / Makefile
1 #
2 # Makefile for the LTT probes.
3 # Only build from the package top-level directory. Never use with make directly.
4
5 ifneq ($(KERNELRELEASE),)
6 ifneq ($(CONFIG_TRACEPOINTS),)
7
8 ccflags-y += -I$(PWD)/probes
9 obj-m += lttng-types.o
10
11 obj-m += lttng-probe-sched.o
12 obj-m += lttng-probe-kvm.o
13 obj-m += lttng-probe-irq.o
14 obj-m += lttng-probe-block.o
15
16 endif
17
18 else
19 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
20 PWD := $(shell pwd)
21 CFLAGS = $(EXTCFLAGS)
22
23 default:
24 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
25
26 modules_install:
27 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
28 /sbin/depmod -a
29
30 clean:
31 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
32
33 endif
This page took 0.029867 seconds and 5 git commands to generate.