Build fix: ifdef KVM build
[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-lttng.o
12
13 obj-m += lttng-probe-sched.o
14 obj-m += lttng-probe-irq.o
15 obj-m += lttng-probe-syscalls.o
16
17 ifneq ($(CONFIG_KVM),)
18 obj-m += lttng-probe-kvm.o
19 endif
20
21 ifneq ($(CONFIG_BLOCK),)
22 ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
23 obj-m += lttng-probe-block.o
24 endif
25 endif
26
27 ifneq ($(CONFIG_KPROBES),)
28 obj-m += lttng-kprobes.o
29 endif
30
31 ifneq ($(CONFIG_DYNAMIC_FTRACE),)
32 obj-m += lttng-ftrace.o
33 endif
34
35 endif
36
37 else
38 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
39 PWD := $(shell pwd)
40 CFLAGS = $(EXTCFLAGS)
41
42 default:
43 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
44
45 modules_install:
46 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
47 /sbin/depmod -a
48
49 clean:
50 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
51
52 endif
This page took 0.030264 seconds and 5 git commands to generate.