Make API CTF-agnostic
[babeltrace.git] / plugins / ctf / common / metadata / Makefile.am
... / ...
CommitLineData
1AM_CPPFLAGS += -I$(builddir) -I$(srcdir)
2AM_YFLAGS = -t -d -v
3
4noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
5
6BUILT_SOURCES = parser.h
7
8libctf_parser_la_SOURCES = lexer.l parser.y objstack.c
9# scanner-symbols.h is included to prefix generated yy_* symbols
10# with bt_.
11libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \
12 -include $(srcdir)/scanner-symbols.h
13libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function
14
15libctf_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 scanner.h \
23 scanner-symbols.h \
24 decoder.c \
25 decoder.h \
26 logging.c \
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 \
36 ctf-meta-translate.c \
37 ctf-meta-resolve.c
38
39libctf_ast_la_LIBADD = $(UUID_LIBS)
40
41if BABELTRACE_BUILD_WITH_MINGW
42libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 $(POPT_LIBS)
43endif
44
45# start with empty files to clean
46CLEANFILES =
47
48if HAVE_BISON
49# we have bison: we can clean the generated parser files
50CLEANFILES += parser.c parser.h parser.output
51else # HAVE_BISON
52# create target used to stop the build if we want to build the parser,
53# but we don't have the necessary tool to do so
54ERR_MSG = "Error: Cannot build target because bison is missing."
55ERR_MSG += "Make sure bison is installed and run the configure script again."
56
57parser.c parser.h: parser.y
58 @echo $(ERR_MSG)
59 @false
60
61all-local: parser.c parser.h
62endif # HAVE_BISON
63
64if HAVE_FLEX
65# we have flex: we can clean the generated lexer files
66CLEANFILES += lexer.c
67else # HAVE_FLEX
68# create target used to stop the build if we want to build the lexer,
69# but we don't have the necessary tool to do so
70ERR_MSG = "Error: Cannot build target because flex is missing."
71ERR_MSG += "Make sure flex is installed and run the configure script again."
72
73filter-lexer.c: lexer.l
74 @echo $(ERR_MSG)
75 @false
76
77all-local: lexer.c
78endif # HAVE_FLEX
This page took 0.025258 seconds and 4 git commands to generate.