configure: re-enable '-Wmissing-field-initializers'
[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 19 -Wno-unused-function \
dd420a9b
MJ
20 -Wno-null-dereference \
21 -Wno-missing-field-initializers
e98a2d6e 22
e98a2d6e 23libctf_ast_la_SOURCES = \
087cd0f5
SM
24 visitor-generate-ir.cpp \
25 visitor-semantic-validator.cpp \
26 visitor-parent-links.cpp \
27 ast.hpp \
28 objstack.hpp \
29 parser.hpp \
30 parser-wrap.hpp \
31 scanner.hpp \
32 scanner-symbols.hpp \
33 decoder.cpp \
34 decoder.hpp \
35 decoder-packetized-file-stream-to-buf.cpp \
36 decoder-packetized-file-stream-to-buf.hpp \
37 logging.cpp \
38 logging.hpp \
39 ctf-meta.hpp \
40 ctf-meta-visitors.hpp \
41 ctf-meta-validate.cpp \
42 ctf-meta-update-meanings.cpp \
43 ctf-meta-update-in-ir.cpp \
44 ctf-meta-update-default-clock-classes.cpp \
45 ctf-meta-update-text-array-sequence.cpp \
46 ctf-meta-update-alignments.cpp \
47 ctf-meta-update-value-storing-indexes.cpp \
48 ctf-meta-update-stream-class-config.cpp \
49 ctf-meta-warn-meaningless-header-fields.cpp \
50 ctf-meta-translate.cpp \
51 ctf-meta-resolve.cpp \
52 ctf-meta-configure-ir-trace.cpp \
53 ctf-meta-configure-ir-trace.hpp
4353f877 54
e98a2d6e 55if BABELTRACE_BUILD_WITH_MINGW
916d0d91 56libctf_ast_la_LIBADD = -lintl -liconv -lole32
e98a2d6e
PP
57endif
58
540d833d
MJ
59# start with empty files to clean
60CLEANFILES =
61
62if HAVE_BISON
63# we have bison: we can clean the generated parser files
087cd0f5 64CLEANFILES += parser.cpp parser.hpp parser.output
540d833d
MJ
65else # HAVE_BISON
66# create target used to stop the build if we want to build the parser,
67# but we don't have the necessary tool to do so
68ERR_MSG = "Error: Cannot build target because bison is missing."
69ERR_MSG += "Make sure bison is installed and run the configure script again."
70
087cd0f5 71parser.cpp parser.hpp: parser.ypp
540d833d
MJ
72 @echo $(ERR_MSG)
73 @false
74
087cd0f5 75all-local: parser.cpp parser.hpp
540d833d
MJ
76endif # HAVE_BISON
77
78if HAVE_FLEX
79# we have flex: we can clean the generated lexer files
087cd0f5 80CLEANFILES += lexer.cpp
540d833d
MJ
81else # HAVE_FLEX
82# create target used to stop the build if we want to build the lexer,
83# but we don't have the necessary tool to do so
84ERR_MSG = "Error: Cannot build target because flex is missing."
85ERR_MSG += "Make sure flex is installed and run the configure script again."
86
087cd0f5 87filter-lexer.cpp: lexer.lpp
2cb42eae
MD
88 @echo $(ERR_MSG)
89 @false
540d833d 90
087cd0f5 91all-local: lexer.cpp
540d833d 92endif # HAVE_FLEX
This page took 0.094827 seconds and 4 git commands to generate.