Make goals configurable with CONFIG_LTTNG
[lttng-modules.git] / lib / Makefile
index 1697b7f56ea5537d669504f9cfffc9ce9006feab..1ea65cec0a9bdc41f7ca33bdf6b7afaa40864f5e 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-$(CONFIG_LTTNG) += 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,4 +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.026643 seconds and 4 git commands to generate.