Add event macro reset header, add kvm probe
[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
14 endif
15
16 else
17 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
18 PWD := $(shell pwd)
19 CFLAGS = $(EXTCFLAGS)
20
21 default:
22 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
23
24 modules_install:
25 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
26 /sbin/depmod -a
27
28 clean:
29 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
30
31 endif
This page took 0.030193 seconds and 5 git commands to generate.