+# SPDX-License-Identifier: GPL-2.0-only
+
if HAVE_LIBLTTNG_UST_CTL
+
noinst_LTLIBRARIES = libust-consumer.la
-libust_consumer_la_SOURCES = ust-consumer.c
+libust_consumer_la_SOURCES = \
+ ust-consumer.cpp \
+ ust-consumer.h
-libust_consumer_la_LIBADD = -llttng-ust-ctl
+libust_consumer_la_LIBADD = $(UST_CTL_LIBS)
endif