Port: Link with no-undefined on Windows
[babeltrace.git] / formats / ctf / metadata / Makefile.am
1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
2 -I$(srcdir)
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 # ctf-scanner-symbols.h is included to prefix generated yy_* symbols
16 # with bt_.
17 libctf_parser_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir) \
18 -include $(srcdir)/ctf-scanner-symbols.h
19 libctf_parser_la_LDFLAGS = $(LT_NO_UNDEFINED)
20
21 libctf_ast_la_CFLAGS = $(AM_CFLAGS) -I$(builddir)
22 libctf_ast_la_SOURCES = ctf-visitor-xml.c \
23 ctf-visitor-parent-links.c \
24 ctf-visitor-semantic-validator.c \
25 ctf-visitor-generate-io-struct.c
26 libctf_ast_la_LIBADD = \
27 $(top_builddir)/lib/libbabeltrace.la
28 libctf_ast_la_LDFLAGS = $(LT_NO_UNDEFINED)
29
30 if BABELTRACE_BUILD_WITH_LIBUUID
31 libctf_ast_la_LIBADD += -luuid
32 endif
33 if BABELTRACE_BUILD_WITH_LIBC_UUID
34 libctf_ast_la_LIBADD += -lc
35 endif
36 if BABELTRACE_BUILD_WITH_MINGW
37 libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt
38 endif
39
40 noinst_PROGRAMS = ctf-parser-test
41 ctf_parser_test_SOURCES = ctf-parser-test.c
42 ctf_parser_test_CFLAGS = $(AM_CFLAGS) -I$(builddir)
43 ctf_parser_test_LDADD = \
44 libctf-parser.la \
45 libctf-ast.la
46
47 CLEANFILES = ctf-lexer.c ctf-parser.c ctf-parser.h ctf-parser.output
This page took 0.031092 seconds and 4 git commands to generate.