1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
3 BUILT_SOURCES = ctf-parser.h
6 noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
11 ctf-scanner-symbols.h \
14 libctf_parser_la_SOURCES = ctf-lexer.l ctf-parser.y objstack.c
15 # ctf-scanner-symbols.h is included to prefix generated yy_* symbols
17 libctf_parser_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir) \
18 -include $(srcdir)/ctf-scanner-symbols.h
20 libctf_ast_la_CFLAGS = $(AM_CFLAGS) -I$(builddir)
21 libctf_ast_la_SOURCES = ctf-visitor-xml.c \
22 ctf-visitor-parent-links.c \
23 ctf-visitor-semantic-validator.c \
24 ctf-visitor-generate-io-struct.c
25 libctf_ast_la_LIBADD = \
26 $(top_builddir)/lib/libbabeltrace.la
28 if BABELTRACE_BUILD_WITH_LIBUUID
29 libctf_ast_la_LIBADD += -luuid
31 if BABELTRACE_BUILD_WITH_LIBC_UUID
32 libctf_ast_la_LIBADD += -lc
34 if BABELTRACE_BUILD_WITH_MINGW
35 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt
38 noinst_PROGRAMS = ctf-parser-test
39 ctf_parser_test_SOURCES = ctf-parser-test.c
40 ctf_parser_test_CFLAGS = $(AM_CFLAGS) -I$(builddir)
41 ctf_parser_test_LDADD = \
45 CLEANFILES = ctf-lexer.c ctf-parser.c ctf-parser.h ctf-parser.output