-AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
- -I$(top_builddir)/formats/ctf
+AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -I$(builddir)
SUBDIRS = types metadata writer .
metadata/libctf-parser.la \
metadata/libctf-ast.la \
writer/libctf-writer.la
+
+if ENABLE_DEBUGINFO
+libbabeltrace_ctf_la_LIBADD += $(top_builddir)/lib/libdebuginfo.la
+endif