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