Add event macro reset header, add kvm probe
[lttng-modules.git] / probes / Makefile
... / ...
CommitLineData
1#
2# Makefile for the LTT probes.
3# Only build from the package top-level directory. Never use with make directly.
4
5ifneq ($(KERNELRELEASE),)
6ifneq ($(CONFIG_TRACEPOINTS),)
7
8ccflags-y += -I$(PWD)/probes
9obj-m += lttng-types.o
10
11obj-m += lttng-probe-sched.o
12obj-m += lttng-probe-kvm.o
13
14endif
15
16else
17 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
18 PWD := $(shell pwd)
19 CFLAGS = $(EXTCFLAGS)
20
21default:
22 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
23
24modules_install:
25 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
26 /sbin/depmod -a
27
28clean:
29 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
30
31endif
This page took 0.023734 seconds and 4 git commands to generate.