Update Changelog to 2.0-pre13
[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_KVM),)
17obj-m += lttng-probe-kvm.o
18endif
19
20ifneq ($(CONFIG_BLOCK),)
21ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
22obj-m += $(shell \
23 if [ $(VERSION) -ge 3 \
24 -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
25 echo "lttng-probe-block.o" ; fi;)
26endif
27endif
28
29ifneq ($(CONFIG_KPROBES),)
30obj-m += lttng-kprobes.o
31endif
32
33
34ifneq ($(CONFIG_KRETPROBES),)
35obj-m += lttng-kretprobes.o
36endif
37
38ifneq ($(CONFIG_DYNAMIC_FTRACE),)
39obj-m += lttng-ftrace.o
40endif
41
42endif
43
44else
45 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
46 PWD := $(shell pwd)
47 CFLAGS = $(EXTCFLAGS)
48
49default:
50 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
51
52modules_install:
53 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
54 /sbin/depmod -a
55
56clean:
57 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
58
59endif
This page took 0.022528 seconds and 4 git commands to generate.