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