configure: enable -Wshadow-field
[babeltrace.git] / src / plugins / ctf / common / metadata / Makefile.am
CommitLineData
0235b0db
MJ
1# SPDX-License-Identifier: MIT
2
05c03100 3AM_CPPFLAGS += -I$(builddir) -I$(srcdir)
042f640b 4AM_YFLAGS = -t -d -v -Wno-yacc
e98a2d6e
PP
5
6noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
7
087cd0f5 8BUILT_SOURCES = parser.hpp
540d833d 9
087cd0f5 10libctf_parser_la_SOURCES = lexer.lpp parser.ypp objstack.cpp
540d833d 11# scanner-symbols.h is included to prefix generated yy_* symbols
e98a2d6e 12# with bt_.
05c03100 13libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \
087cd0f5 14 -include $(srcdir)/scanner-symbols.hpp
d5ed90f6
SM
15
16# This library contains (mostly) generated code, silence some warnings that it
17# produces.
087cd0f5 18libctf_parser_la_CXXFLAGS = $(AM_CXXFLAGS) \
d5ed90f6
SM
19 -Wno-unused-function \
20 -Wno-null-dereference
e98a2d6e 21
e98a2d6e 22libctf_ast_la_SOURCES = \
087cd0f5
SM
23 visitor-generate-ir.cpp \
24 visitor-semantic-validator.cpp \
25 visitor-parent-links.cpp \
26 ast.hpp \
27 objstack.hpp \
28 parser.hpp \
29 parser-wrap.hpp \
30 scanner.hpp \
31 scanner-symbols.hpp \
32 decoder.cpp \
33 decoder.hpp \
34 decoder-packetized-file-stream-to-buf.cpp \
35 decoder-packetized-file-stream-to-buf.hpp \
36 logging.cpp \
37 logging.hpp \
38 ctf-meta.hpp \
39 ctf-meta-visitors.hpp \
40 ctf-meta-validate.cpp \
41 ctf-meta-update-meanings.cpp \
42 ctf-meta-update-in-ir.cpp \
43 ctf-meta-update-default-clock-classes.cpp \
44 ctf-meta-update-text-array-sequence.cpp \
45 ctf-meta-update-alignments.cpp \
46 ctf-meta-update-value-storing-indexes.cpp \
47 ctf-meta-update-stream-class-config.cpp \
48 ctf-meta-warn-meaningless-header-fields.cpp \
49 ctf-meta-translate.cpp \
50 ctf-meta-resolve.cpp \
51 ctf-meta-configure-ir-trace.cpp \
52 ctf-meta-configure-ir-trace.hpp
4353f877 53
e98a2d6e 54if BABELTRACE_BUILD_WITH_MINGW
916d0d91 55libctf_ast_la_LIBADD = -lintl -liconv -lole32
e98a2d6e
PP
56endif
57
540d833d
MJ
58# start with empty files to clean
59CLEANFILES =
60
61if HAVE_BISON
62# we have bison: we can clean the generated parser files
087cd0f5 63CLEANFILES += parser.cpp parser.hpp parser.output
540d833d
MJ
64else # HAVE_BISON
65# create target used to stop the build if we want to build the parser,
66# but we don't have the necessary tool to do so
67ERR_MSG = "Error: Cannot build target because bison is missing."
68ERR_MSG += "Make sure bison is installed and run the configure script again."
69
087cd0f5 70parser.cpp parser.hpp: parser.ypp
540d833d
MJ
71 @echo $(ERR_MSG)
72 @false
73
087cd0f5 74all-local: parser.cpp parser.hpp
540d833d
MJ
75endif # HAVE_BISON
76
77if HAVE_FLEX
78# we have flex: we can clean the generated lexer files
087cd0f5 79CLEANFILES += lexer.cpp
540d833d
MJ
80else # HAVE_FLEX
81# create target used to stop the build if we want to build the lexer,
82# but we don't have the necessary tool to do so
83ERR_MSG = "Error: Cannot build target because flex is missing."
84ERR_MSG += "Make sure flex is installed and run the configure script again."
85
087cd0f5 86filter-lexer.cpp: lexer.lpp
2cb42eae
MD
87 @echo $(ERR_MSG)
88 @false
540d833d 89
087cd0f5 90all-local: lexer.cpp
540d833d 91endif # HAVE_FLEX
This page took 0.083557 seconds and 4 git commands to generate.