Fix: define macros for logging levels
[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 libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function
14
15 libctf_ast_la_SOURCES = \
16 visitor-generate-ir.c \
17 visitor-semantic-validator.c \
18 visitor-parent-links.c \
19 ast.h \
20 objstack.h \
21 parser.h \
22 parser-wrap.h \
23 scanner.h \
24 scanner-symbols.h \
25 decoder.c \
26 decoder-packetized-file-stream-to-buf.c \
27 decoder.h \
28 logging.c \
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 \
38 ctf-meta-update-stream-class-config.c \
39 ctf-meta-warn-meaningless-header-fields.c \
40 ctf-meta-translate.c \
41 ctf-meta-resolve.c \
42 ctf-meta-configure-ir-trace.c \
43 ctf-meta-configure-ir-trace.h
44
45 if BABELTRACE_BUILD_WITH_MINGW
46 libctf_ast_la_LIBADD = -lintl -liconv -lole32
47 endif
48
49 # start with empty files to clean
50 CLEANFILES =
51
52 if HAVE_BISON
53 # we have bison: we can clean the generated parser files
54 CLEANFILES += parser.c parser.h parser.output
55 else # 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
58 ERR_MSG = "Error: Cannot build target because bison is missing."
59 ERR_MSG += "Make sure bison is installed and run the configure script again."
60
61 parser.c parser.h: parser.y
62 @echo $(ERR_MSG)
63 @false
64
65 all-local: parser.c parser.h
66 endif # HAVE_BISON
67
68 if HAVE_FLEX
69 # we have flex: we can clean the generated lexer files
70 CLEANFILES += lexer.c
71 else # 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
74 ERR_MSG = "Error: Cannot build target because flex is missing."
75 ERR_MSG += "Make sure flex is installed and run the configure script again."
76
77 filter-lexer.c: lexer.l
78 @echo $(ERR_MSG)
79 @false
80
81 all-local: lexer.c
82 endif # HAVE_FLEX
This page took 0.03086 seconds and 4 git commands to generate.