Commit | Line | Data |
---|---|---|
e98a2d6e PP |
1 | AM_CPPFLAGS = $(CPPFLAGS) -I$(top_srcdir)/include -I$(srcdir) |
2 | AM_CFLAGS = $(PACKAGE_CFLAGS) | |
3 | BUILT_SOURCES = ctf-parser.h ctf-parser.c ctf-lexer.c | |
4 | AM_YFLAGS = -t -d -v | |
5 | ||
6 | noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la | |
7 | ||
8 | noinst_HEADERS = \ | |
9 | ctf-scanner.h \ | |
10 | ctf-ast.h \ | |
11 | ctf-scanner-symbols.h | |
12 | ||
13 | libctf_parser_la_SOURCES = ctf-lexer.l ctf-parser.y objstack.c | |
14 | # ctf-scanner-symbols.h is included to prefix generated yy_* symbols | |
15 | # with bt_. | |
16 | libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir) \ | |
17 | -include $(srcdir)/ctf-scanner-symbols.h | |
18 | ||
19 | libctf_ast_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir) | |
20 | libctf_ast_la_SOURCES = \ | |
21 | ctf-visitor-generate-ir.c \ | |
22 | ctf-visitor-semantic-validator.c \ | |
23 | ctf-visitor-parent-links.c | |
24 | libctf_ast_la_LIBADD = $(top_builddir)/lib/libbabeltrace.la | |
25 | ||
26 | if BABELTRACE_BUILD_WITH_LIBUUID | |
27 | libctf_ast_la_LIBADD += -luuid | |
28 | endif | |
29 | ||
30 | if BABELTRACE_BUILD_WITH_LIBC_UUID | |
31 | libctf_ast_la_LIBADD += -lc | |
32 | endif | |
33 | ||
34 | if BABELTRACE_BUILD_WITH_MINGW | |
35 | libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt | |
36 | endif | |
37 | ||
38 | CLEANFILES = $(BUILT_SOURCES) ctf-parser.output |