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 | |
881833e3 | 10 | obj-m += ltt-ring-buffer-metadata-client.o |
1c8284eb MD |
11 | |
12 | obj-m += ltt-relay.o | |
881833e3 | 13 | ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \ |
becb1a77 | 14 | ltt-probes.o ltt-core.o ltt-context.o \ |
53f1f0ca | 15 | lttng-context-pid.o lttng-context-comm.o \ |
979133c5 | 16 | lttng-context-prio.o lttng-context-nice.o |
11b5a3c2 | 17 | |
6d61b34d | 18 | obj-m += probes/ |
f3bc08c5 | 19 | obj-m += lib/ |
f3bc08c5 | 20 | |
1c8284eb MD |
21 | endif |
22 | ||
23 | else | |
24 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
25 | PWD := $(shell pwd) | |
2e6246b4 | 26 | CFLAGS = $(EXTCFLAGS) |
1c8284eb MD |
27 | |
28 | default: | |
29 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
30 | ||
31 | modules_install: | |
32 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install | |
33 | /sbin/depmod -a | |
34 | ||
35 | clean: | |
36 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean | |
37 | ||
38 | endif |