Fix: define macros for logging levels
[babeltrace.git] / src / plugins / ctf / common / metadata / Makefile.am
CommitLineData
989e97b6 1AM_CPPFLAGS += -I$(builddir) -I$(srcdir)
6245c710 2AM_YFLAGS = -t -d -v -Wno-yacc
e98a2d6e
PP
3
4noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
5
8a121625
MJ
6BUILT_SOURCES = parser.h
7
06a626b8 8libctf_parser_la_SOURCES = lexer.l parser.y objstack.c
8a121625 9# scanner-symbols.h is included to prefix generated yy_* symbols
e98a2d6e 10# with bt_.
989e97b6 11libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \
06a626b8 12 -include $(srcdir)/scanner-symbols.h
33c81e6f 13libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function
e98a2d6e 14
e98a2d6e 15libctf_ast_la_SOURCES = \
06a626b8
JG
16 visitor-generate-ir.c \
17 visitor-semantic-validator.c \
4353f877
PP
18 visitor-parent-links.c \
19 ast.h \
20 objstack.h \
21 parser.h \
3fef1229 22 parser-wrap.h \
4353f877 23 scanner.h \
1e649dff
PP
24 scanner-symbols.h \
25 decoder.c \
a248254b 26 decoder-packetized-file-stream-to-buf.c \
55314f2a
JG
27 decoder.h \
28 logging.c \
7b33a0e0
PP
29 logging.h \
30 ctf-meta.h \
31 ctf-meta-visitors.h \
32 ctf-meta-validate.c \
33 ctf-meta-update-meanings.c \
34 ctf-meta-update-in-ir.c \
35 ctf-meta-update-default-clock-classes.c \
36 ctf-meta-update-text-array-sequence.c \
37 ctf-meta-update-value-storing-indexes.c \
32476570 38 ctf-meta-update-stream-class-config.c \
0476f6f7 39 ctf-meta-warn-meaningless-header-fields.c \
7b33a0e0 40 ctf-meta-translate.c \
cd03c43c
PP
41 ctf-meta-resolve.c \
42 ctf-meta-configure-ir-trace.c \
43 ctf-meta-configure-ir-trace.h
4353f877 44
e98a2d6e 45if BABELTRACE_BUILD_WITH_MINGW
34c83b89 46libctf_ast_la_LIBADD = -lintl -liconv -lole32
e98a2d6e
PP
47endif
48
8a121625
MJ
49# start with empty files to clean
50CLEANFILES =
51
52if HAVE_BISON
53# we have bison: we can clean the generated parser files
54CLEANFILES += parser.c parser.h parser.output
55else # HAVE_BISON
56# create target used to stop the build if we want to build the parser,
57# but we don't have the necessary tool to do so
58ERR_MSG = "Error: Cannot build target because bison is missing."
59ERR_MSG += "Make sure bison is installed and run the configure script again."
60
61parser.c parser.h: parser.y
62 @echo $(ERR_MSG)
63 @false
64
65all-local: parser.c parser.h
66endif # HAVE_BISON
67
68if HAVE_FLEX
69# we have flex: we can clean the generated lexer files
70CLEANFILES += lexer.c
71else # HAVE_FLEX
72# create target used to stop the build if we want to build the lexer,
73# but we don't have the necessary tool to do so
74ERR_MSG = "Error: Cannot build target because flex is missing."
75ERR_MSG += "Make sure flex is installed and run the configure script again."
76
77filter-lexer.c: lexer.l
5953a0b2
MD
78 @echo $(ERR_MSG)
79 @false
8a121625
MJ
80
81all-local: lexer.c
82endif # HAVE_FLEX
This page took 0.057807 seconds and 4 git commands to generate.