-# It is very important to compile the initializer with PIC otherwise we
-# may get obscure errors when linking to shared libraries.
-libust-initializer.o: libust-initializer.c
- $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -I$(top_srcdir) -o $@ $<
+if BUILD_PYTHON_AGENT
+SUBDIRS += python-lttngust \
+ liblttng-ust-python-agent
+endif
+
+SUBDIRS += tests doc
+
+#temporarily disabled
+# liblttng-ust-malloc
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = lttng-ust.pc lttng-ust-ctl.pc
+
+dist_doc_DATA = \
+ ChangeLog \
+ LICENSE \
+ README.md
+
+dist_noinst_DATA = \
+ CodingStyle \
+ CONTRIBUTING.md \
+ LICENSES/BSD-2-Clause \
+ LICENSES/BSD-3-Clause \
+ LICENSES/GPL-2.0 \
+ LICENSES/GPL-3.0 \
+ LICENSES/LGPL-2.1 \
+ LICENSES/MIT
+
+check-loop:
+ cd tests && $(MAKE) $(AM_MAKEFLAGS) check-loop
+.PHONY: check-loop