Update readme
[lttng-modules.git] / probes / Makefile
... / ...
CommitLineData
1#
2# Makefile for the LTT probes.
3# Only build from the package top-level directory. Never use with make directly.
4
5ifneq ($(KERNELRELEASE),)
6ifneq ($(CONFIG_TRACEPOINTS),)
7
8ccflags-y += -I$(PWD)/probes
9obj-m += lttng-types.o
10
11obj-m += lttng-probe-lttng.o
12
13obj-m += lttng-probe-sched.o
14obj-m += lttng-probe-irq.o
15
16ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
17obj-m += lttng-probe-syscalls.o
18endif
19
20ifneq ($(CONFIG_KVM),)
21obj-m += lttng-probe-kvm.o
22endif
23
24ifneq ($(CONFIG_BLOCK),)
25ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
26obj-m += lttng-probe-block.o
27endif
28endif
29
30ifneq ($(CONFIG_KPROBES),)
31obj-m += lttng-kprobes.o
32endif
33
34ifneq ($(CONFIG_DYNAMIC_FTRACE),)
35obj-m += lttng-ftrace.o
36endif
37
38endif
39
40else
41 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
42 PWD := $(shell pwd)
43 CFLAGS = $(EXTCFLAGS)
44
45default:
46 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
47
48modules_install:
49 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
50 /sbin/depmod -a
51
52clean:
53 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
54
55endif
This page took 0.025273 seconds and 4 git commands to generate.