Add bt_plugin_create_from_name()
[deliverable/babeltrace.git] / converter / Makefile.am
1 AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include \
2 -DINSTALL_LIBDIR=\"$(libdir)\" \
3 -DCONFIG_IN_TREE_PLUGIN_DIR=\"$(abs_top_builddir)/plugins/\"
4 AM_LDFLAGS = -lpopt
5
6 bin_PROGRAMS = babeltrace.bin babeltrace-log
7 noinst_PROGRAMS = babeltrace
8 #check_PROGRAMS = babeltrace
9
10 babeltrace_bin_SOURCES = \
11 babeltrace.c \
12 babeltrace-cfg.c \
13 babeltrace-cfg.h \
14 default-cfg.h \
15 default-cfg.c
16
17 # -Wl,--no-as-needed is needed for recent gold linker who seems to think
18 # it knows better and considers libraries with constructors having
19 # side-effects as dead code.
20 babeltrace_bin_LDFLAGS = -Wl, $(LD_NO_AS_NEEDED), -export-dynamic
21 babeltrace_bin_LDADD = \
22 $(top_builddir)/lib/libbabeltrace.la \
23 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
24 $(top_builddir)/compat/libcompat.la \
25 $(top_builddir)/formats/ctf-text/libbabeltrace-ctf-text.la \
26 $(top_builddir)/formats/ctf-metadata/libbabeltrace-ctf-metadata.la \
27 $(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la \
28 $(top_builddir)/formats/lttng-live/libbabeltrace-lttng-live.la \
29 $(top_builddir)/common/libbabeltrace-common.la
30
31 if ENABLE_DEBUG_INFO
32 babeltrace_bin_LDADD += $(top_builddir)/lib/libdebug-info.la
33 endif
34
35 if BUILT_IN_PLUGINS
36 babeltrace_bin_LDFLAGS += -Wl,--whole-archive,$(top_builddir)/plugins/ctf/.libs/libbabeltrace-plugin-ctf.a,$(top_builddir)/plugins/text/.libs/libbabeltrace-plugin-ctf-text.a,$(top_builddir)/plugins/muxer/.libs/libbabeltrace-plugin-muxer.a,$(top_builddir)/plugins/writer/.libs/libbabeltrace-plugin-ctf-writer.a,--no-whole-archive
37 endif
38
39 babeltrace_log_SOURCES = babeltrace-log.c
40
41 babeltrace_log_LDADD = \
42 $(top_builddir)/lib/libbabeltrace.la \
43 $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
44 $(top_builddir)/compat/libcompat.la
45
46 if BABELTRACE_BUILD_WITH_LIBUUID
47 babeltrace_log_LDADD += -luuid
48 endif
49 if BABELTRACE_BUILD_WITH_LIBC_UUID
50 babeltrace_log_LDADD += -lc
51 endif
52
53 if BABELTRACE_BUILD_WITH_MINGW
54 babeltrace_log_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
55 babeltrace_bin_LDADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -lpthread
56 endif
57
58 # Only used for in-tree execution and tests
59 babeltrace_SOURCES = $(babeltrace_bin_SOURCES)
60 babeltrace_LDFLAGS = $(babeltrace_bin_LDFLAGS)
61 babeltrace_LDADD = $(babeltrace_bin_LDADD)
62 babeltrace_CFLAGS = $(AM_CFLAGS) -DBT_SET_DEFAULT_IN_TREE_CONFIGURATION
This page took 0.033574 seconds and 5 git commands to generate.