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