Commit | Line | Data |
---|---|---|
e98a2d6e PP |
1 | AM_CPPFLAGS = $(CPPFLAGS) -I$(top_srcdir)/include -I$(srcdir) |
2 | AM_CFLAGS = $(PACKAGE_CFLAGS) | |
06a626b8 | 3 | BUILT_SOURCES = parser.h parser.c lexer.c |
e98a2d6e PP |
4 | AM_YFLAGS = -t -d -v |
5 | ||
6 | noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la | |
7 | ||
06a626b8 | 8 | libctf_parser_la_SOURCES = lexer.l parser.y objstack.c |
e98a2d6e PP |
9 | # ctf-scanner-symbols.h is included to prefix generated yy_* symbols |
10 | # with bt_. | |
11 | libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir) \ | |
06a626b8 | 12 | -include $(srcdir)/scanner-symbols.h |
e98a2d6e PP |
13 | |
14 | libctf_ast_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir) | |
15 | libctf_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 \ | |
27 | logging.h | |
4353f877 | 28 | |
c3ddb532 | 29 | libctf_ast_la_LIBADD = |
e98a2d6e PP |
30 | |
31 | if BABELTRACE_BUILD_WITH_LIBUUID | |
32 | libctf_ast_la_LIBADD += -luuid | |
33 | endif | |
34 | ||
35 | if BABELTRACE_BUILD_WITH_LIBC_UUID | |
36 | libctf_ast_la_LIBADD += -lc | |
37 | endif | |
38 | ||
39 | if BABELTRACE_BUILD_WITH_MINGW | |
40 | libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt | |
41 | endif | |
42 | ||
06a626b8 | 43 | CLEANFILES = $(BUILT_SOURCES) parser.output |