Add mmap client mode
[deliverable/lttng-modules.git] / Makefile
CommitLineData
1c8284eb
MD
1#
2# Makefile for the LTT objects.
3#
4
5ifneq ($(KERNELRELEASE),)
11b5a3c2 6ifneq ($(CONFIG_TRACEPOINTS),)
1c8284eb 7
11b5a3c2
MD
8obj-m += ltt-ring-buffer-client-discard.o
9obj-m += ltt-ring-buffer-client-overwrite.o
881833e3 10obj-m += ltt-ring-buffer-metadata-client.o
2db1399a
JD
11obj-m += ltt-ring-buffer-client-mmap-discard.o
12obj-m += ltt-ring-buffer-client-mmap-overwrite.o
13obj-m += ltt-ring-buffer-metadata-mmap-client.o
1c8284eb
MD
14
15obj-m += ltt-relay.o
881833e3 16ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \
becb1a77 17 ltt-probes.o ltt-core.o ltt-context.o \
53f1f0ca 18 lttng-context-pid.o lttng-context-comm.o \
b64bc438
MD
19 lttng-context-prio.o lttng-context-nice.o \
20 lttng-context-vpid.o lttng-context-tid.o \
21 lttng-context-vtid.o lttng-context-ppid.o \
22 lttng-context-vppid.o
11b5a3c2 23
c24a0d71 24ifneq ($(CONFIG_PERF_EVENTS),)
1d443b34
MD
25ltt-relay-objs += $(shell \
26 if [ $(VERSION) -ge 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 ] ; then \
27 echo "lttng-context-perf-counters.o" ; fi;)
c24a0d71
MD
28endif
29
6d61b34d 30obj-m += probes/
f3bc08c5 31obj-m += lib/
f3bc08c5 32
1c8284eb
MD
33endif
34
35else
36 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
37 PWD := $(shell pwd)
2e6246b4 38 CFLAGS = $(EXTCFLAGS)
1c8284eb
MD
39
40default:
41 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
42
43modules_install:
44 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
45 /sbin/depmod -a
46
47clean:
48 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
49
50endif
This page took 0.028158 seconds and 5 git commands to generate.