Commit | Line | Data |
---|---|---|
1c8284eb MD |
1 | # |
2 | # Makefile for the LTT objects. | |
3 | # | |
4 | ||
5 | ifneq ($(KERNELRELEASE),) | |
11b5a3c2 | 6 | ifneq ($(CONFIG_TRACEPOINTS),) |
1c8284eb | 7 | |
11b5a3c2 MD |
8 | obj-m += ltt-ring-buffer-client-discard.o |
9 | obj-m += ltt-ring-buffer-client-overwrite.o | |
1c8284eb MD |
10 | |
11 | obj-m += ltt-relay.o | |
02119ee5 | 12 | ltt-relay-objs := ltt-events.o ltt-event-header.o ltt-debugfs-abi.o \ |
a509e133 | 13 | ltt-probes.o ltt-core.o |
11b5a3c2 | 14 | |
6d61b34d MD |
15 | obj-m += probes/ |
16 | ||
f3bc08c5 MD |
17 | # Use externally packaged lib ring buffer if missing in kernel |
18 | ifneq ($(CONFIG_LIB_RING_BUFFER),) | |
19 | else | |
20 | obj-m += lib/ | |
21 | endif | |
22 | ||
1c8284eb MD |
23 | endif |
24 | ||
25 | else | |
26 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
27 | PWD := $(shell pwd) | |
2e6246b4 | 28 | CFLAGS = $(EXTCFLAGS) |
1c8284eb MD |
29 | |
30 | default: | |
31 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
32 | ||
33 | modules_install: | |
34 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install | |
35 | /sbin/depmod -a | |
36 | ||
37 | clean: | |
38 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean | |
39 | ||
40 | endif |