-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 ir .
metadata/libctf-ast.la \
writer/libctf-writer.la \
ir/libctf-ir.la
+
+if ENABLE_DEBUGINFO
+libbabeltrace_ctf_la_LIBADD += $(top_builddir)/lib/libdebuginfo.la
+endif