Fix: include ctf-scanner-symbols.h to prefix yy_* symbols
[babeltrace.git] / formats / ctf / metadata / Makefile.am
... / ...
CommitLineData
1AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
2 -I$(top_srcdir)/formats/ctf/metadata
3BUILT_SOURCES = ctf-parser.h
4AM_YFLAGS = -t -d -v
5
6noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la
7
8noinst_HEADERS = \
9 ctf-scanner.h \
10 ctf-ast.h \
11 ctf-scanner-symbols.h \
12 objstack.h
13
14libctf_parser_la_SOURCES = ctf-lexer.l ctf-parser.y objstack.c
15# ctf-scanner-symbols.h is included to prefix generated yy_* symbols
16# with bt_.
17libctf_parser_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir) \
18 -include $(srcdir)/ctf-scanner-symbols.h
19
20libctf_ast_la_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/formats/ctf/metadata
21libctf_ast_la_SOURCES = ctf-visitor-xml.c \
22 ctf-visitor-parent-links.c \
23 ctf-visitor-semantic-validator.c \
24 ctf-visitor-generate-io-struct.c
25libctf_ast_la_LIBADD = \
26 $(top_builddir)/lib/libbabeltrace.la
27
28if BABELTRACE_BUILD_WITH_LIBUUID
29libctf_ast_la_LIBADD += -luuid
30endif
31if BABELTRACE_BUILD_WITH_LIBC_UUID
32libctf_ast_la_LIBADD += -lc
33endif
34if BABELTRACE_BUILD_WITH_MINGW
35libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt
36endif
37
38noinst_PROGRAMS = ctf-parser-test
39ctf_parser_test_SOURCES = ctf-parser-test.c
40ctf_parser_test_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/formats/ctf/metadata
41ctf_parser_test_LDADD = \
42 libctf-parser.la \
43 libctf-ast.la
44
45CLEANFILES = ctf-lexer.c ctf-parser.c ctf-parser.h ctf-parser.output
This page took 0.023323 seconds and 4 git commands to generate.