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