-if HAVE_LIBLTTNG_UST_CTL
+# SPDX-License-Identifier: GPL-2.0-only
-AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+if HAVE_LIBLTTNG_UST_CTL
noinst_LTLIBRARIES = libust-consumer.la
libust_consumer_la_SOURCES = ust-consumer.c ust-consumer.h
libust_consumer_la_LIBADD = \
- -llttng-ust-ctl \
+ $(UST_CTL_LIBS) \
$(top_builddir)/src/common/relayd/librelayd.la
endif