Fix: sink.text.pretty: print_discarded_elements_msg(): add missing space
[babeltrace.git] / plugins / ctf / common / metadata / Makefile.am
CommitLineData
05c03100 1AM_CPPFLAGS += -I$(builddir) -I$(srcdir)
e98a2d6e
PP
2AM_YFLAGS = -t -d -v
3
4noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
5
540d833d
MJ
6BUILT_SOURCES = parser.h
7
06a626b8 8libctf_parser_la_SOURCES = lexer.l parser.y objstack.c
540d833d 9# scanner-symbols.h is included to prefix generated yy_* symbols
e98a2d6e 10# with bt_.
05c03100 11libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \
06a626b8 12 -include $(srcdir)/scanner-symbols.h
f73367f8 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 \
22 scanner.h \
1e649dff
PP
23 scanner-symbols.h \
24 decoder.c \
55314f2a
JG
25 decoder.h \
26 logging.c \
44c440bc
PP
27 logging.h \
28 ctf-meta.h \
29 ctf-meta-visitors.h \
30 ctf-meta-validate.c \
31 ctf-meta-update-meanings.c \
32 ctf-meta-update-in-ir.c \
33 ctf-meta-update-default-clock-classes.c \
34 ctf-meta-update-text-array-sequence.c \
35 ctf-meta-update-value-storing-indexes.c \
83ebb7f1 36 ctf-meta-warn-meaningless-header-fields.c \
44c440bc
PP
37 ctf-meta-translate.c \
38 ctf-meta-resolve.c
4353f877 39
60725cf9 40libctf_ast_la_LIBADD = $(UUID_LIBS)
e98a2d6e
PP
41
42if BABELTRACE_BUILD_WITH_MINGW
4817cd5b 43libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 $(POPT_LIBS)
e98a2d6e
PP
44endif
45
540d833d
MJ
46# start with empty files to clean
47CLEANFILES =
48
49if HAVE_BISON
50# we have bison: we can clean the generated parser files
51CLEANFILES += parser.c parser.h parser.output
52else # HAVE_BISON
53# create target used to stop the build if we want to build the parser,
54# but we don't have the necessary tool to do so
55ERR_MSG = "Error: Cannot build target because bison is missing."
56ERR_MSG += "Make sure bison is installed and run the configure script again."
57
58parser.c parser.h: parser.y
59 @echo $(ERR_MSG)
60 @false
61
62all-local: parser.c parser.h
63endif # HAVE_BISON
64
65if HAVE_FLEX
66# we have flex: we can clean the generated lexer files
67CLEANFILES += lexer.c
68else # HAVE_FLEX
69# create target used to stop the build if we want to build the lexer,
70# but we don't have the necessary tool to do so
71ERR_MSG = "Error: Cannot build target because flex is missing."
72ERR_MSG += "Make sure flex is installed and run the configure script again."
73
74filter-lexer.c: lexer.l
2cb42eae
MD
75 @echo $(ERR_MSG)
76 @false
540d833d
MJ
77
78all-local: lexer.c
79endif # HAVE_FLEX
This page took 0.046828 seconds and 4 git commands to generate.