Commit | Line | Data |
---|---|---|
1c8284eb MD |
1 | # |
2 | # Makefile for the LTT objects. | |
3 | # | |
4 | ||
5 | ifneq ($(KERNELRELEASE),) | |
11b5a3c2 | 6 | ifneq ($(CONFIG_TRACEPOINTS),) |
1c8284eb MD |
7 | |
8 | obj-m += ltt-core.o | |
11b5a3c2 MD |
9 | obj-m += ltt-ring-buffer-client-discard.o |
10 | obj-m += ltt-ring-buffer-client-overwrite.o | |
1c8284eb MD |
11 | |
12 | obj-m += ltt-relay.o | |
02119ee5 MD |
13 | ltt-relay-objs := ltt-events.o ltt-event-header.o ltt-debugfs-abi.o \ |
14 | ltt-probes.o | |
11b5a3c2 | 15 | |
6d61b34d MD |
16 | obj-m += probes/ |
17 | ||
1c25284c MD |
18 | #ltt-type-serializer.o |
19 | #ltt-serialize.o | |
11b5a3c2 MD |
20 | #obj-m += ltt-marker-control.o |
21 | #obj-m += ltt-trace-control.o | |
7514523f | 22 | #ltt-ascii.o |
1c8284eb | 23 | |
11b5a3c2 MD |
24 | #obj-m += ltt-statedump.o |
25 | #obj-m += ltt-userspace-event.o | |
26 | #obj-m += ltt-filter.o | |
27 | #obj-m += ltt-kprobes.o | |
28 | #obj-m += probes/ | |
1c8284eb MD |
29 | |
30 | endif | |
31 | ||
32 | else | |
33 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
34 | PWD := $(shell pwd) | |
2e6246b4 | 35 | CFLAGS = $(EXTCFLAGS) |
1c8284eb MD |
36 | |
37 | default: | |
38 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules | |
39 | ||
40 | modules_install: | |
41 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install | |
42 | /sbin/depmod -a | |
43 | ||
44 | clean: | |
45 | $(MAKE) -C $(KERNELDIR) M=$(PWD) clean | |
46 | ||
47 | endif |