fix: need to undef mainline define
[lttng-modules.git] / Makefile
CommitLineData
1c8284eb
MD
1#
2# Makefile for the LTT objects.
3#
4
5ifneq ($(KERNELRELEASE),)
11b5a3c2 6ifneq ($(CONFIG_TRACEPOINTS),)
1c8284eb 7
a90917c3
MD
8obj-m += lttng-ring-buffer-client-discard.o
9obj-m += lttng-ring-buffer-client-overwrite.o
10obj-m += lttng-ring-buffer-metadata-client.o
11obj-m += lttng-ring-buffer-client-mmap-discard.o
12obj-m += lttng-ring-buffer-client-mmap-overwrite.o
13obj-m += lttng-ring-buffer-metadata-mmap-client.o
14
15obj-m += lttng-tracer.o
16lttng-tracer-objs := lttng-events.o lttng-abi.o \
17 lttng-probes.o lttng-context.o \
c26fddc2 18 lttng-context-pid.o lttng-context-procname.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 \
a82c63f1
MD
22 lttng-context-vppid.o lttng-calibrate.o \
23 wrapper/random.o
11b5a3c2 24
c337ddc2
MD
25obj-m += lttng-statedump.o
26lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o
27
63728b02 28ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
a90917c3 29lttng-tracer-objs += lttng-syscalls.o
63728b02 30endif
259b6cb3 31
c24a0d71 32ifneq ($(CONFIG_PERF_EVENTS),)
a90917c3 33lttng-tracer-objs += $(shell \
1386746e
MD
34 if [ $(VERSION) -ge 3 \
35 -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \
1d443b34 36 echo "lttng-context-perf-counters.o" ; fi;)
c24a0d71
MD
37endif
38
6d61b34d 39obj-m += probes/
f3bc08c5 40obj-m += lib/
f3bc08c5 41
1c8284eb
MD
42endif
43
44else
45 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
46 PWD := $(shell pwd)
2e6246b4 47 CFLAGS = $(EXTCFLAGS)
1c8284eb
MD
48
49default:
50 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
51
52modules_install:
53 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
1c8284eb
MD
54
55clean:
56 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
57
58endif
This page took 0.028164 seconds and 4 git commands to generate.