-AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir) \
- -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/utils/testapp \
- -O2 -g
+AM_CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/utils/testapp
if LTTNG_TOOLS_BUILD_WITH_LIBDL
LIBS += -ldl