Fix: allow LTTng to be built within kernel tree
[lttng-modules.git] / lib / Makefile
index 3fc82edc8b8a1ee1443a31cc6778719a19dd5f24..6074406678c1554fe38d3592e88f058c1cdc7291 100644 (file)
@@ -1,6 +1,11 @@
-obj-m += lib-ring-buffer.o
+KERNELDIR = ${LTTNG_KERNELDIR}
+MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))
 
-lib-ring-buffer-objs := \
+include $(MAKEFILEDIR)/../Makefile.ABI.workarounds
+
+obj-m += lttng-lib-ring-buffer.o
+
+lttng-lib-ring-buffer-objs := \
        ringbuffer/ring_buffer_backend.o \
        ringbuffer/ring_buffer_frontend.o \
        ringbuffer/ring_buffer_iterator.o \
@@ -8,5 +13,4 @@ lib-ring-buffer-objs := \
        ringbuffer/ring_buffer_splice.o \
        ringbuffer/ring_buffer_mmap.o \
        prio_heap/lttng_prio_heap.o \
-       ../wrapper/poll.o \
        ../wrapper/splice.o
This page took 0.022902 seconds and 4 git commands to generate.