Add mmap client mode
[lttng-modules.git] / Makefile
1 #
2 # Makefile for the LTT objects.
3 #
4
5 ifneq ($(KERNELRELEASE),)
6 ifneq ($(CONFIG_TRACEPOINTS),)
7
8 obj-m += ltt-ring-buffer-client-discard.o
9 obj-m += ltt-ring-buffer-client-overwrite.o
10 obj-m += ltt-ring-buffer-metadata-client.o
11 obj-m += ltt-ring-buffer-client-mmap-discard.o
12 obj-m += ltt-ring-buffer-client-mmap-overwrite.o
13 obj-m += ltt-ring-buffer-metadata-mmap-client.o
14
15 obj-m += ltt-relay.o
16 ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \
17 ltt-probes.o ltt-core.o ltt-context.o \
18 lttng-context-pid.o lttng-context-comm.o \
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
23
24 ifneq ($(CONFIG_PERF_EVENTS),)
25 ltt-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;)
28 endif
29
30 obj-m += probes/
31 obj-m += lib/
32
33 endif
34
35 else
36 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
37 PWD := $(shell pwd)
38 CFLAGS = $(EXTCFLAGS)
39
40 default:
41 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
42
43 modules_install:
44 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
45 /sbin/depmod -a
46
47 clean:
48 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
49
50 endif
This page took 0.029818 seconds and 5 git commands to generate.