Merge unknown syscall method with extended detail method
[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 += lttng-probe-block.o
23endif
24endif
25
26ifneq ($(CONFIG_KPROBES),)
27obj-m += lttng-kprobes.o
28endif
29
30
31ifneq ($(CONFIG_KRETPROBES),)
32obj-m += lttng-kretprobes.o
33endif
34
35ifneq ($(CONFIG_DYNAMIC_FTRACE),)
36obj-m += lttng-ftrace.o
37endif
38
39endif
40
41else
42 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
43 PWD := $(shell pwd)
44 CFLAGS = $(EXTCFLAGS)
45
46default:
47 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
48
49modules_install:
50 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
51 /sbin/depmod -a
52
53clean:
54 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
55
56endif
This page took 0.022287 seconds and 4 git commands to generate.