Fix: lttng: add-trigger: invalid access past end of exclusions buffer
[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 5noinst_LTLIBRARIES = libfilter.la
c6228685
MD
6noinst_HEADERS = filter-ast.h \
7 filter-symbols.h
d00c599e
DG
8
9BUILT_SOURCES = filter-parser.h
d00c599e 10
11138250
PP
11libfilter_la_SOURCES = \
12 filter-parser.y filter-lexer.l \
d00c599e
DG
13 filter-visitor-xml.c \
14 filter-visitor-generate-ir.c \
15 filter-visitor-ir-check-binary-op-nesting.c \
dcd5daf2 16 filter-visitor-ir-validate-string.c \
9f449915
PP
17 filter-visitor-ir-validate-globbing.c \
18 filter-visitor-ir-normalize-glob-patterns.c \
d00c599e 19 filter-visitor-generate-bytecode.c \
d00c599e 20 filter-ast.h \
d00c599e
DG
21 filter-ir.h \
22 memstream.h
343af227 23libfilter_la_CFLAGS = -include filter-symbols.h $(AM_CFLAGS)
9f449915 24libfilter_la_LIBADD = $(top_builddir)/src/common/string-utils/libstring-utils.la
d00c599e 25
3ec89b08 26AM_YFLAGS = -t -d -v -Wno-yacc
11138250
PP
27
28# start with empty files to clean
29CLEANFILES =
30
31if HAVE_BISON
32# we have bison: we can clean the generated parser files
33CLEANFILES += filter-parser.c filter-parser.h filter-parser.output
34else # HAVE_BISON
35# create target used to stop the build if we want to build the parser,
36# but we don't have the necessary tool to do so
37ERR_MSG = "Error: Cannot build target because bison is missing."
38ERR_MSG += "Make sure bison is installed and run the configure script again."
39
40filter-parser.c filter-parser.h: filter-parser.y
41 @echo $(ERR_MSG)
42 @false
43
44all-local: filter-parser.c filter-parser.h
45endif # HAVE_BISON
46
47if HAVE_FLEX
48# we have flex: we can clean the generated lexer files
49CLEANFILES += filter-lexer.c
50else # HAVE_FLEX
51# create target used to stop the build if we want to build the lexer,
52# but we don't have the necessary tool to do so
53ERR_MSG = "Error: Cannot build target because flex is missing."
54ERR_MSG += "Make sure flex is installed and run the configure script again."
55
56filter-lexer.c: filter-lexer.l
57 @echo $(ERR_MSG)
58 @false
59
60all-local: filter-lexer.c
61endif # HAVE_FLEX
This page took 0.047959 seconds and 4 git commands to generate.