Check for context name duplicata
[lttng-modules.git] / probes / Makefile
CommitLineData
6d61b34d
MD
1#
2# Makefile for the LTT probes.
df4b4094 3# Only build from the package top-level directory. Never use with make directly.
6d61b34d
MD
4
5ifneq ($(KERNELRELEASE),)
6ifneq ($(CONFIG_TRACEPOINTS),)
7
8ccflags-y += -I$(PWD)/probes
40652b65 9obj-m += lttng-types.o
6d61b34d 10
cd4bd11f
MD
11obj-m += lttng-probe-lttng.o
12
6db3d13b
MD
13obj-m += lttng-probe-sched.o
14obj-m += lttng-probe-kvm.o
0d1d4002 15obj-m += lttng-probe-irq.o
d32a57a2 16obj-m += lttng-probe-block.o
ae3dd5f0 17obj-m += lttng-probe-syscalls.o
6db3d13b 18
acd614cc 19ifneq ($(CONFIG_KPROBES),)
d6d808f3 20obj-m += lttng-kprobes.o
acd614cc 21endif
d6d808f3 22
e0a7a7c4
MD
23ifneq ($(CONFIG_DYNAMIC_FTRACE),)
24obj-m += lttng-ftrace.o
25endif
26
6d61b34d
MD
27endif
28
29else
30 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
31 PWD := $(shell pwd)
32 CFLAGS = $(EXTCFLAGS)
33
34default:
35 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
36
37modules_install:
38 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
39 /sbin/depmod -a
40
41clean:
42 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
43
44endif
This page took 0.025005 seconds and 4 git commands to generate.