-INCLUDES = $(KCOMPAT_CFLAGS)
-INCLUDES += -I$(top_builddir)/libustcomm
-INCLUDES += -I$(top_builddir)/libustcmd
-INCLUDES += -I$(top_builddir)/share
+ustctl_SOURCES = \
+ ustctl.c \
+ $(top_srcdir)/libustcmd/ustcmd.c \
+ $(top_srcdir)/libustcmd/ustcmd.h
+
+ustctl_CFLAGS = -DUST_COMPONENT=ustctl
+
+ustctl_LDADD = \
+ $(top_builddir)/snprintf/libustsnprintf.la \
+ $(top_builddir)/libustcomm/libustcomm.la