1 AM_CPPFLAGS += -I$(srcdir) -I$(builddir)
3 noinst_PROGRAMS = filter-grammar-test
4 noinst_LTLIBRARIES = libfilter.la
5 noinst_HEADERS = filter-ast.h \
8 BUILT_SOURCES = filter-parser.h
10 libfilter_la_SOURCES = \
11 filter-parser.y filter-lexer.l \
12 filter-visitor-set-parent.c \
13 filter-visitor-xml.c \
14 filter-visitor-generate-ir.c \
15 filter-visitor-ir-check-binary-op-nesting.c \
16 filter-visitor-ir-validate-string.c \
17 filter-visitor-generate-bytecode.c \
22 libfilter_la_CFLAGS = -include filter-symbols.h $(AM_CFLAGS)
26 # start with empty files to clean
30 # we have bison: we can clean the generated parser files
31 CLEANFILES += filter-parser.c filter-parser.h filter-parser.output
33 # create target used to stop the build if we want to build the parser,
34 # but we don't have the necessary tool to do so
35 ERR_MSG = "Error: Cannot build target because bison is missing."
36 ERR_MSG += "Make sure bison is installed and run the configure script again."
38 filter-parser.c filter-parser.h: filter-parser.y
42 all-local: filter-parser.c filter-parser.h
46 # we have flex: we can clean the generated lexer files
47 CLEANFILES += filter-lexer.c
49 # create target used to stop the build if we want to build the lexer,
50 # but we don't have the necessary tool to do so
51 ERR_MSG = "Error: Cannot build target because flex is missing."
52 ERR_MSG += "Make sure flex is installed and run the configure script again."
54 filter-lexer.c: filter-lexer.l
58 all-local: filter-lexer.c
61 filter_grammar_test_SOURCES = filter-grammar-test.c
62 filter_grammar_test_LDADD = libfilter.la