Fix: allow LTTng to be built within kernel tree
[lttng-modules.git] / lib / Makefile
index 420c85a5e587a81fd67ccb8d5344287ce4bf01d3..6074406678c1554fe38d3592e88f058c1cdc7291 100644 (file)
@@ -1,6 +1,7 @@
-KERNELDIR=${LTTNG_KERNELDIR}
+KERNELDIR = ${LTTNG_KERNELDIR}
+MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))
 
-include $(KBUILD_EXTMOD)/Makefile.ABI.workarounds
+include $(MAKEFILEDIR)/../Makefile.ABI.workarounds
 
 obj-m += lttng-lib-ring-buffer.o
 
This page took 0.024662 seconds and 4 git commands to generate.