ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)
-obj-$(CONFIG_LTTNG) += probes/lttng-test.o
+obj-$(CONFIG_LTTNG) += lttng-test.o
+lttng-test-objs := probes/lttng-test.o
-obj-$(CONFIG_LTTNG) += clock-plugin/lttng-clock-plugin-test.o
+obj-$(CONFIG_LTTNG_CLOCK_PLUGIN_TEST) += lttng-clock-plugin-test.o
+lttng-clock-plugin-test-objs := clock-plugin/lttng-clock-plugin-test.o
# vim:syntax=make