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