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 \
29 libctf_ast_la_LIBADD = $(UUID_LIBS)
31 if BABELTRACE_BUILD_WITH_MINGW
32 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 $(POPT_LIBS)
35 # start with empty files to clean
39 # we have bison: we can clean the generated parser files
40 CLEANFILES += parser.c parser.h parser.output
42 # create target used to stop the build if we want to build the parser,
43 # but we don't have the necessary tool to do so
44 ERR_MSG = "Error: Cannot build target because bison is missing."
45 ERR_MSG += "Make sure bison is installed and run the configure script again."
47 parser.c parser.h: parser.y
51 all-local: parser.c parser.h
55 # we have flex: we can clean the generated lexer files
58 # create target used to stop the build if we want to build the lexer,
59 # but we don't have the necessary tool to do so
60 ERR_MSG = "Error: Cannot build target because flex is missing."
61 ERR_MSG += "Make sure flex is installed and run the configure script again."
63 filter-lexer.c: lexer.l