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 | |
299338c8 | 9 | obj-m += sched.o |
40652b65 | 10 | obj-m += lttng-types.o |
6d61b34d MD |
11 | |
12 | endif | |
13 | ||
14 | else | |
15 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
16 | PWD := $(shell pwd) | |
17 | CFLAGS = $(EXTCFLAGS) | |
18 | ||
19 | default: | |
20 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
21 | ||
22 | modules_install: | |
23 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install | |
24 | /sbin/depmod -a | |
25 | ||
26 | clean: | |
27 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean | |
28 | ||
29 | endif |