Fix: missing includes break the out-of-tree build
[babeltrace.git] / formats / ctf / metadata / Makefile.am
1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
2 -I$(top_srcdir)/formats/ctf/metadata
3 BUILT_SOURCES = ctf-parser.h
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 objstack.h
13
14 libctf_parser_la_SOURCES = ctf-lexer.l ctf-parser.y objstack.c
15 libctf_parser_la_CFLAGS = $(AM_CFLAGS)
16
17 libctf_ast_la_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/formats/ctf/metadata
18 libctf_ast_la_SOURCES = ctf-visitor-xml.c \
19 ctf-visitor-parent-links.c \
20 ctf-visitor-semantic-validator.c \
21 ctf-visitor-generate-io-struct.c
22 libctf_ast_la_LIBADD = \
23 $(top_builddir)/lib/libbabeltrace.la
24
25 if BABELTRACE_BUILD_WITH_LIBUUID
26 libctf_ast_la_LIBADD += -luuid
27 endif
28 if BABELTRACE_BUILD_WITH_LIBC_UUID
29 libctf_ast_la_LIBADD += -lc
30 endif
31 if BABELTRACE_BUILD_WITH_MINGW
32 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt
33 endif
34
35 noinst_PROGRAMS = ctf-parser-test
36 ctf_parser_test_SOURCES = ctf-parser-test.c
37 ctf_parser_test_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/formats/ctf/metadata
38 ctf_parser_test_LDADD = \
39 libctf-parser.la \
40 libctf-ast.la
41
42 CLEANFILES = ctf-lexer.c ctf-parser.c ctf-parser.h ctf-parser.output
This page took 0.02984 seconds and 4 git commands to generate.