Update Changelog to 2.0-pre13
[lttng-modules.git] / Makefile
1 #
2 # Makefile for the LTT objects.
3 #
4
5 ifneq ($(KERNELRELEASE),)
6 ifneq ($(CONFIG_TRACEPOINTS),)
7
8 obj-m += lttng-ring-buffer-client-discard.o
9 obj-m += lttng-ring-buffer-client-overwrite.o
10 obj-m += lttng-ring-buffer-metadata-client.o
11 obj-m += lttng-ring-buffer-client-mmap-discard.o
12 obj-m += lttng-ring-buffer-client-mmap-overwrite.o
13 obj-m += lttng-ring-buffer-metadata-mmap-client.o
14
15 obj-m += lttng-tracer.o
16 lttng-tracer-objs := lttng-events.o lttng-abi.o \
17 lttng-probes.o lttng-context.o \
18 lttng-context-pid.o lttng-context-procname.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 lttng-calibrate.o \
23 wrapper/random.o
24
25 ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
26 lttng-tracer-objs += lttng-syscalls.o
27 endif
28
29 ifneq ($(CONFIG_PERF_EVENTS),)
30 lttng-tracer-objs += $(shell \
31 if [ $(VERSION) -ge 3 \
32 -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \
33 echo "lttng-context-perf-counters.o" ; fi;)
34 endif
35
36 obj-m += probes/
37 obj-m += lib/
38
39 endif
40
41 else
42 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
43 PWD := $(shell pwd)
44 CFLAGS = $(EXTCFLAGS)
45
46 default:
47 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
48
49 modules_install:
50 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
51
52 clean:
53 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
54
55 endif
This page took 0.033693 seconds and 4 git commands to generate.