lttng-statedump-impl: Fix lttng_list_interrupts for empty implementation
[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 lttng-context-hostname.o wrapper/random.o
24
25 obj-m += lttng-statedump.o
26 lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \
27 wrapper/fdtable.o
28
29 ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
30 lttng-tracer-objs += lttng-syscalls.o probes/lttng-probe-user.o
31 endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS
32
33 ifneq ($(CONFIG_PERF_EVENTS),)
34 lttng-tracer-objs += $(shell \
35 if [ $(VERSION) -ge 3 \
36 -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \
37 echo "lttng-context-perf-counters.o" ; fi;)
38 endif # CONFIG_PERF_EVENTS
39
40 obj-m += probes/
41 obj-m += lib/
42
43 endif # CONFIG_TRACEPOINTS
44
45 else # KERNELRELEASE
46 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
47 PWD := $(shell pwd)
48 CFLAGS = $(EXTCFLAGS)
49
50 default:
51 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
52
53 modules_install:
54 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
55
56 clean:
57 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
58
59 %.i: %.c
60 $(MAKE) -C $(KERNELDIR) M=$(PWD) $@
61 endif # KERNELRELEASE
This page took 0.045468 seconds and 4 git commands to generate.