Add lttng irq probe support
[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-sched.o
12 obj-m += lttng-probe-kvm.o
13 obj-m += lttng-probe-irq.o
14
15 endif
16
17 else
18 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
19 PWD := $(shell pwd)
20 CFLAGS = $(EXTCFLAGS)
21
22 default:
23 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
24
25 modules_install:
26 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
27 /sbin/depmod -a
28
29 clean:
30 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
31
32 endif
This page took 0.038547 seconds and 5 git commands to generate.