Commit | Line | Data |
---|---|---|
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 | |
5 | ifneq ($(KERNELRELEASE),) | |
6 | ifneq ($(CONFIG_TRACEPOINTS),) | |
7 | ||
8 | ccflags-y += -I$(PWD)/probes | |
40652b65 | 9 | obj-m += lttng-types.o |
6d61b34d | 10 | |
cd4bd11f MD |
11 | obj-m += lttng-probe-lttng.o |
12 | ||
6db3d13b MD |
13 | obj-m += lttng-probe-sched.o |
14 | obj-m += lttng-probe-kvm.o | |
0d1d4002 | 15 | obj-m += lttng-probe-irq.o |
d32a57a2 | 16 | obj-m += lttng-probe-block.o |
ae3dd5f0 | 17 | obj-m += lttng-probe-syscalls.o |
6db3d13b | 18 | |
d6d808f3 MD |
19 | obj-m += lttng-kprobes.o |
20 | ||
e0a7a7c4 MD |
21 | ifneq ($(CONFIG_DYNAMIC_FTRACE),) |
22 | obj-m += lttng-ftrace.o | |
23 | endif | |
24 | ||
6d61b34d MD |
25 | endif |
26 | ||
27 | else | |
28 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
29 | PWD := $(shell pwd) | |
30 | CFLAGS = $(EXTCFLAGS) | |
31 | ||
32 | default: | |
33 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
34 | ||
35 | modules_install: | |
36 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install | |
37 | /sbin/depmod -a | |
38 | ||
39 | clean: | |
40 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean | |
41 | ||
42 | endif |