-AM_CPPFLAGS =
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
lttnglibexec_PROGRAMS = lttng-consumerd
-AM_CPPFLAGS = -DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \
+ -DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
-DINSTALL_LIB_PATH=\""$(libdir)"\"
AM_CFLAGS = -fno-strict-aliasing
-AM_CPPFLAGS = -DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \
+ -DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
-DINSTALL_LIB_PATH=\""$(libdir)"\"
AM_CFLAGS = -fno-strict-aliasing
-AM_CPPFLAGS = -DINSTALL_BIN_PATH=\""$(bindir)"\"
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \
+ -DINSTALL_BIN_PATH=\""$(bindir)"\"
bin_PROGRAMS = lttng
-AM_CPPFLAGS =
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
SUBDIRS = compat hashtable kernel-ctl sessiond-comm relayd \
kernel-consumer ust-consumer testpoint
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
noinst_LTLIBRARIES = libcompat.la
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
noinst_LTLIBRARIES = libhashtable.la
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+
# Kernel consumer library
noinst_LTLIBRARIES = libkernel-consumer.la
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
noinst_LTLIBRARIES = libkernel-ctl.la
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+
# Relayd library
noinst_LTLIBRARIES = librelayd.la
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+
# Session daemon communication lib
noinst_LTLIBRARIES = libsessiond-comm.la
if HAVE_LIBLTTNG_UST_CTL
+
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+
noinst_LTLIBRARIES = libust-consumer.la
libust_consumer_la_SOURCES = ust-consumer.c ust-consumer.h
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(builddir)
+
SUBDIRS = filter
lib_LTLIBRARIES = liblttng-ctl.la
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src \
+ -I$(srcdir) -I$(builddir)
+
noinst_PROGRAMS = filter-grammar-test
noinst_LTLIBRARIES = libfilter.la
noinst_HEADERS = filter-ast.h
-AM_CFLAGS = -g -Wall -I../
+AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -g -Wall
AM_LDFLAGS = -lurcu -lurcu-cds
EXTRA_DIST = runall.sh run-kernel-tests.sh
SUBDIRS = streaming health
-AM_CFLAGS = -g -Wall -I../
+AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -g -Wall
AM_LDFLAGS = -lurcu -lurcu-cds
EXTRA_DIST = runall.sh
-AM_CFLAGS = -I. -O2 -g -I../../
+AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(srcdir) -O2 -g
AM_LDFLAGS =
if LTTNG_TOOLS_BUILD_WITH_LIBDL
if HAVE_LIBLTTNG_UST_CTL
SUBDIRS = nprocesses high-throughput low-throughput before-after multi-session
-AM_CFLAGS = -g -Wall -I../
+AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/tests -I$(top_srcdir)/src -g -Wall
AM_LDFLAGS = -lurcu -lurcu-cds
EXTRA_DIST = runall.sh run-ust-global-tests.sh
-AM_CFLAGS = -I. -O2
+AM_CFLAGS = -I$(srcdir) -O2
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS = -I. -O2
+AM_CFLAGS = -I$(srcdir) -O2
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS = -I. -O2
+AM_CFLAGS = -I$(srcdir) -O2
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS = -I. -O2
+AM_CFLAGS = -I$(srcdir) -O2
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_CFLAGS = -I. -O2
+AM_CFLAGS = -I$(srcdir) -O2
AM_LDFLAGS = -llttng-ust
if LTTNG_TOOLS_BUILD_WITH_LIBDL