-SUBDIRS = .
+SUBDIRS = . tools kernel
-dist_noinst_SCRIPTS = runall
+AM_CFLAGS = -g -Wall
+AM_LDFLAGS = -lurcu -lurcu-cds
+
+EXTRA_DIST = run-report.py test_list.py utils.sh utils.h
+
+if HAVE_LIBLTTNG_UST_CTL
+SUBDIRS += ust
+endif # HAVE_LIBLTTNG_UST_CTL
+
+check-am:
+ ./runall.sh