SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / src / common / filter / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
343af227 3AM_CPPFLAGS += -I$(srcdir) -I$(builddir)
74130cb7 4
d00c599e
DG
5noinst_PROGRAMS = filter-grammar-test
6noinst_LTLIBRARIES = libfilter.la
c6228685
MD
7noinst_HEADERS = filter-ast.h \
8 filter-symbols.h
d00c599e
DG
9
10BUILT_SOURCES = filter-parser.h
d00c599e 11
11138250
PP
12libfilter_la_SOURCES = \
13 filter-parser.y filter-lexer.l \
d00c599e
DG
14 filter-visitor-xml.c \
15 filter-visitor-generate-ir.c \
16 filter-visitor-ir-check-binary-op-nesting.c \
dcd5daf2 17 filter-visitor-ir-validate-string.c \
9f449915
PP
18 filter-visitor-ir-validate-globbing.c \
19 filter-visitor-ir-normalize-glob-patterns.c \
d00c599e 20 filter-visitor-generate-bytecode.c \
d00c599e 21 filter-ast.h \
d00c599e
DG
22 filter-ir.h \
23 memstream.h
343af227 24libfilter_la_CFLAGS = -include filter-symbols.h $(AM_CFLAGS)
9f449915 25libfilter_la_LIBADD = $(top_builddir)/src/common/string-utils/libstring-utils.la
d00c599e 26
3ec89b08 27AM_YFLAGS = -t -d -v -Wno-yacc
11138250
PP
28
29# start with empty files to clean
30CLEANFILES =
31
32if HAVE_BISON
33# we have bison: we can clean the generated parser files
34CLEANFILES += filter-parser.c filter-parser.h filter-parser.output
35else # HAVE_BISON
36# create target used to stop the build if we want to build the parser,
37# but we don't have the necessary tool to do so
38ERR_MSG = "Error: Cannot build target because bison is missing."
39ERR_MSG += "Make sure bison is installed and run the configure script again."
40
41filter-parser.c filter-parser.h: filter-parser.y
42 @echo $(ERR_MSG)
43 @false
44
45all-local: filter-parser.c filter-parser.h
46endif # HAVE_BISON
47
48if HAVE_FLEX
49# we have flex: we can clean the generated lexer files
50CLEANFILES += filter-lexer.c
51else # HAVE_FLEX
52# create target used to stop the build if we want to build the lexer,
53# but we don't have the necessary tool to do so
54ERR_MSG = "Error: Cannot build target because flex is missing."
55ERR_MSG += "Make sure flex is installed and run the configure script again."
56
57filter-lexer.c: filter-lexer.l
58 @echo $(ERR_MSG)
59 @false
60
61all-local: filter-lexer.c
62endif # HAVE_FLEX
63
d00c599e 64filter_grammar_test_SOURCES = filter-grammar-test.c
2463b787
JR
65filter_grammar_test_LDADD = \
66 libfilter.la \
67 ../bytecode/libbytecode.la
This page took 0.094902 seconds and 5 git commands to generate.