Commit | Line | Data |
---|---|---|
05c03100 | 1 | AM_CPPFLAGS += -I$(builddir) -I$(srcdir) |
06a626b8 | 2 | BUILT_SOURCES = parser.h parser.c lexer.c |
e98a2d6e PP |
3 | AM_YFLAGS = -t -d -v |
4 | ||
5 | noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la | |
6 | ||
06a626b8 | 7 | libctf_parser_la_SOURCES = lexer.l parser.y objstack.c |
e98a2d6e PP |
8 | # ctf-scanner-symbols.h is included to prefix generated yy_* symbols |
9 | # with bt_. | |
05c03100 | 10 | libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \ |
06a626b8 | 11 | -include $(srcdir)/scanner-symbols.h |
f73367f8 | 12 | libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function |
e98a2d6e | 13 | |
e98a2d6e | 14 | libctf_ast_la_SOURCES = \ |
06a626b8 JG |
15 | visitor-generate-ir.c \ |
16 | visitor-semantic-validator.c \ | |
4353f877 PP |
17 | visitor-parent-links.c \ |
18 | ast.h \ | |
19 | objstack.h \ | |
20 | parser.h \ | |
21 | scanner.h \ | |
1e649dff PP |
22 | scanner-symbols.h \ |
23 | decoder.c \ | |
55314f2a JG |
24 | decoder.h \ |
25 | logging.c \ | |
26 | logging.h | |
4353f877 | 27 | |
c3ddb532 | 28 | libctf_ast_la_LIBADD = |
e98a2d6e PP |
29 | |
30 | if BABELTRACE_BUILD_WITH_LIBUUID | |
31 | libctf_ast_la_LIBADD += -luuid | |
32 | endif | |
33 | ||
34 | if BABELTRACE_BUILD_WITH_LIBC_UUID | |
35 | libctf_ast_la_LIBADD += -lc | |
36 | endif | |
37 | ||
38 | if BABELTRACE_BUILD_WITH_MINGW | |
39 | libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt | |
40 | endif | |
41 | ||
06a626b8 | 42 | CLEANFILES = $(BUILT_SOURCES) parser.output |