X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=9324f329ef27cd23badb6ebc9e02e1c501b7a860;hb=141ddf2856b853516b4170ef8104afe85e6efe68;hp=05e4449bbbdf18bb288416bbda5c0ee4114c1c8a;hpb=39e088f37e7cb43f35af05b81bf1e23542623802;p=lttng-modules.git diff --git a/Makefile b/Makefile index 05e4449b..9324f329 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ ifneq ($(KERNELRELEASE),) ifneq ($(CONFIG_TRACEPOINTS),) - MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST))) + TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST))) lttng_check_linux_version = $(shell pwd)/include/linux/version.h lttng_check_generated_linux_version = $(shell pwd)/include/generated/uapi/linux/version.h @@ -25,7 +25,9 @@ ifneq ($(KERNELRELEASE),) endif endif - include $(MAKEFILEDIR)/Makefile.ABI.workarounds + include $(TOP_LTTNG_MODULES_DIR)/Makefile.ABI.workarounds + + ccflags-y += -I$(TOP_LTTNG_MODULES_DIR) obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-discard.o obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-overwrite.o