Fix builds with built-in plugins
[babeltrace.git] / plugins / ctf / common / metadata / Makefile.am
1 AM_CPPFLAGS = $(CPPFLAGS) -I$(top_srcdir)/include -I$(srcdir)
2 AM_CFLAGS = $(PACKAGE_CFLAGS)
3 BUILT_SOURCES = parser.h parser.c lexer.c
4 AM_YFLAGS = -t -d -v
5
6 noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
7
8 libctf_parser_la_SOURCES = lexer.l parser.y objstack.c
9 # ctf-scanner-symbols.h is included to prefix generated yy_* symbols
10 # with bt_.
11 libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir) \
12 -include $(srcdir)/scanner-symbols.h
13
14 libctf_ast_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)
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 scanner.h \
23 scanner-symbols.h \
24 decoder.c \
25 decoder.h
26
27 libctf_ast_la_LIBADD =
28
29 if BABELTRACE_BUILD_WITH_LIBUUID
30 libctf_ast_la_LIBADD += -luuid
31 endif
32
33 if BABELTRACE_BUILD_WITH_LIBC_UUID
34 libctf_ast_la_LIBADD += -lc
35 endif
36
37 if BABELTRACE_BUILD_WITH_MINGW
38 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt
39 endif
40
41 CLEANFILES = $(BUILT_SOURCES) parser.output
This page took 0.030958 seconds and 4 git commands to generate.