-SUBDIRS = . include protocol client src
+
+if HAVE_UTEST
+SUBDIRS = . include protocol common src backends client tools ut
+else
+SUBDIRS = . include protocol common src backends client tools
+endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libtdm.pc