1 AM_CPPFLAGS += -I$(builddir) -I$(srcdir)
4 noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
6 BUILT_SOURCES = parser.h
8 libctf_parser_la_SOURCES = lexer.l parser.y objstack.c
9 # scanner-symbols.h is included to prefix generated yy_* symbols
11 libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \
12 -include $(srcdir)/scanner-symbols.h
13 libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function
15 libctf_ast_la_SOURCES = \
16 visitor-generate-ir.c \
17 visitor-semantic-validator.c \
18 visitor-parent-links.c \
31 ctf-meta-update-meanings.c \
32 ctf-meta-update-in-ir.c \
33 ctf-meta-update-default-clock-classes.c \
34 ctf-meta-update-text-array-sequence.c \
35 ctf-meta-update-value-storing-indexes.c \
36 ctf-meta-update-stream-class-config.c \
37 ctf-meta-warn-meaningless-header-fields.c \
38 ctf-meta-translate.c \
41 libctf_ast_la_LIBADD = $(UUID_LIBS)
43 if BABELTRACE_BUILD_WITH_MINGW
44 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 $(POPT_LIBS)
47 # start with empty files to clean
51 # we have bison: we can clean the generated parser files
52 CLEANFILES += parser.c parser.h parser.output
54 # create target used to stop the build if we want to build the parser,
55 # but we don't have the necessary tool to do so
56 ERR_MSG = "Error: Cannot build target because bison is missing."
57 ERR_MSG += "Make sure bison is installed and run the configure script again."
59 parser.c parser.h: parser.y
63 all-local: parser.c parser.h
67 # we have flex: we can clean the generated lexer files
70 # create target used to stop the build if we want to build the lexer,
71 # but we don't have the necessary tool to do so
72 ERR_MSG = "Error: Cannot build target because flex is missing."
73 ERR_MSG += "Make sure flex is installed and run the configure script again."
75 filter-lexer.c: lexer.l