LTTng performance monitoring counters integration (work in progress)
[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-kvm.o
15 obj-m += lttng-probe-irq.o
16 obj-m += lttng-probe-block.o
17 obj-m += lttng-probe-syscalls.o
18
19 ifneq ($(CONFIG_KPROBES),)
20 obj-m += lttng-kprobes.o
21 endif
22
23 ifneq ($(CONFIG_DYNAMIC_FTRACE),)
24 obj-m += lttng-ftrace.o
25 endif
26
27 ifneq ($(CONFIG_PERF_EVENTS),)
28 obj-m += lttng-perf-counters.o
29 endif
30
31 endif
32
33 else
34 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
35 PWD := $(shell pwd)
36 CFLAGS = $(EXTCFLAGS)
37
38 default:
39 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
40
41 modules_install:
42 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
43 /sbin/depmod -a
44
45 clean:
46 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
47
48 endif
This page took 0.030743 seconds and 5 git commands to generate.